taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit 493fe38a603cc7a54a9d36b235da7abad3a10a92
parent 7b2f95e482367183ca77f619d9ecbe34d5fd85bd
Author: Florian Dold <florian@dold.me>
Date:   Fri,  5 Apr 2024 13:38:37 +0200

-check that withdrawal throws

Diffstat:
Mpackages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts | 12+++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)

diff --git 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 (