diff options
author | Florian Dold <florian@dold.me> | 2023-11-14 13:42:35 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-11-14 17:05:49 +0100 |
commit | 23681bb251619bf9faabc448200db1366b89973e (patch) | |
tree | 2fd389d8ab160e380e71fbaef642503b487a75fe /packages/taler-harness | |
parent | 9b38047b40bca3bb4825e33b1f737a9bc98ab2f6 (diff) | |
download | wallet-core-23681bb251619bf9faabc448200db1366b89973e.tar.xz |
-fix multiexchange test
Diffstat (limited to 'packages/taler-harness')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-multiexchange.ts | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-multiexchange.ts b/packages/taler-harness/src/integrationtests/test-multiexchange.ts index 119c21b4d..aeda035a8 100644 --- a/packages/taler-harness/src/integrationtests/test-multiexchange.ts +++ b/packages/taler-harness/src/integrationtests/test-multiexchange.ts @@ -74,13 +74,22 @@ export async function runMultiExchangeTest(t: GlobalTestState) { database: dbDefault.connStr, }); - const exchangeBankAccount = await bank.createExchangeAccount( + const exchangeOneBankAccount = await bank.createExchangeAccount( "myexchange", "x", ); - await exchangeOne.addBankAccount("1", exchangeBankAccount); + await exchangeOne.addBankAccount("1", exchangeOneBankAccount); - bank.setSuggestedExchange(exchangeOne, exchangeBankAccount.accountPaytoUri); + const exchangeTwoBankAccount = await bank.createExchangeAccount( + "myexchange2", + "x", + ); + await exchangeTwo.addBankAccount("1", exchangeTwoBankAccount); + + bank.setSuggestedExchange( + exchangeOne, + exchangeOneBankAccount.accountPaytoUri, + ); await bank.start(); @@ -100,7 +109,7 @@ export async function runMultiExchangeTest(t: GlobalTestState) { // Start and configure merchant - //merchant.addExchange(exchangeOne); + merchant.addExchange(exchangeOne); merchant.addExchange(exchangeTwo); await merchant.start(); |