diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts b/packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts index 15ac79953..3251750da 100644 --- a/packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts +++ b/packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts @@ -18,6 +18,7 @@ * Imports. */ import { + AmountString, ExchangeUpdateStatus, NotificationType, j2s, @@ -106,13 +107,15 @@ export async function runWalletExchangeUpdateTest( t.assertDeepEqual(exchangesListResult.exchanges.length, 0); - await withdrawViaBankV2(t, { + const wres = await withdrawViaBankV2(t, { walletClient, bank, exchange: exchangeOne, amount: "TESTKUDOS:10", }); + await wres.withdrawalFinishedCond; + await exchangeOne.stop(); console.log("starting second exchange"); @@ -136,6 +139,13 @@ export async function runWalletExchangeUpdateTest( console.log(`exchange entry: ${j2s(exchangeEntry)}`); + await t.assertThrowsAsync(async () => { + await walletClient.call(WalletApiOperation.GetWithdrawalDetailsForAmount, { + amount: "TESTKUDOS:10" as AmountString, + exchangeBaseUrl: exchangeOne.baseUrl, + }); + }); + const exchangeAvailableCond = walletClient.waitForNotificationCond((n) => { console.log(`got notif ${j2s(n)}`); return ( |