diff options
author | Florian Dold <florian@dold.me> | 2024-02-28 01:25:22 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-02-28 01:25:26 +0100 |
commit | 8b88540037d6f5a6d2d8fa583c6a7d46e7fd6e04 (patch) | |
tree | 94413ac186308edfeed02c780f08855bd789ade9 /packages/taler-harness/src/harness | |
parent | 5154aca23446d617882f85038231198824010c47 (diff) | |
download | wallet-core-8b88540037d6f5a6d2d8fa583c6a7d46e7fd6e04.tar.xz |
harness: payto receiver-name is mandatory
Diffstat (limited to 'packages/taler-harness/src/harness')
-rw-r--r-- | packages/taler-harness/src/harness/harness.ts | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/packages/taler-harness/src/harness/harness.ts b/packages/taler-harness/src/harness/harness.ts index 2199824e4..9418a3256 100644 --- a/packages/taler-harness/src/harness/harness.ts +++ b/packages/taler-harness/src/harness/harness.ts @@ -592,7 +592,7 @@ class BankServiceBase { protected globalTestState: GlobalTestState, protected bankConfig: BankConfig, protected configFile: string, - ) { } + ) {} } export interface HarnessExchangeBankAccount { @@ -612,7 +612,8 @@ export interface HarnessExchangeBankAccount { */ export class FakebankService extends BankServiceBase - implements BankServiceHandle { + implements BankServiceHandle +{ proc: ProcessWrapper | undefined; http = createPlatformHttpLib({ enableThrottling: false }); @@ -742,7 +743,8 @@ export class FakebankService */ export class LibeufinBankService extends BankServiceBase - implements BankServiceHandle { + implements BankServiceHandle +{ proc: ProcessWrapper | undefined; http = createPlatformHttpLib({ enableThrottling: false }); @@ -1208,7 +1210,7 @@ export class ExchangeService implements ExchangeServiceInterface { private exchangeConfig: ExchangeConfig, private configFilename: string, private keyPair: EddsaKeyPair, - ) { } + ) {} get name() { return this.exchangeConfig.name; @@ -1564,7 +1566,7 @@ export class MerchantService implements MerchantServiceInterface { private globalState: GlobalTestState, private merchantConfig: MerchantConfig, private configFilename: string, - ) { } + ) {} private currentTimetravelOffsetMs: number | undefined; @@ -2023,7 +2025,7 @@ export class WalletClient { return client.call(operation, payload); } - constructor(private args: WalletClientArgs) { } + constructor(private args: WalletClientArgs) {} async connect(): Promise<void> { const waiter = this.waiter; @@ -2091,9 +2093,11 @@ export class WalletCli { ? `--crypto-worker=${cliOpts.cryptoWorkerType}` : ""; const logName = `wallet-${self.name}`; - const command = `taler-wallet-cli ${self.timetravelArg ?? "" - } ${cryptoWorkerArg} --no-throttle -LTRACE --skip-defaults --wallet-db '${self.dbfile - }' api '${op}' ${shellWrap(JSON.stringify(payload))}`; + const command = `taler-wallet-cli ${ + self.timetravelArg ?? "" + } ${cryptoWorkerArg} --no-throttle -LTRACE --skip-defaults --wallet-db '${ + self.dbfile + }' api '${op}' ${shellWrap(JSON.stringify(payload))}`; const resp = await sh(self.globalTestState, logName, command); logger.info("--- wallet core response ---"); logger.info(resp); @@ -2212,7 +2216,7 @@ export function generateRandomPayto(label: string): string { return `payto://iban/SANDBOXX/${generateRandomTestIban( label, )}?receiver-name=${label}`; - return `payto://x-taler-bank/localhost/${label}`; + return `payto://x-taler-bank/localhost/${label}?receiver-name=${label}`; } function waitMs(ms: number): Promise<void> { |