From 493fe38a603cc7a54a9d36b235da7abad3a10a92 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 5 Apr 2024 13:38:37 +0200 Subject: -check that withdrawal throws --- .../src/integrationtests/test-wallet-exchange-update.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'packages/taler-harness') 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 ( -- cgit v1.2.3