summaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-04-05 13:38:37 +0200
committerFlorian Dold <florian@dold.me>2024-04-05 13:38:37 +0200
commit493fe38a603cc7a54a9d36b235da7abad3a10a92 (patch)
tree2d5c63e46c04e14f3b92bc9045824567f0aa9432 /packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts
parent7b2f95e482367183ca77f619d9ecbe34d5fd85bd (diff)
downloadwallet-core-493fe38a603cc7a54a9d36b235da7abad3a10a92.tar.gz
wallet-core-493fe38a603cc7a54a9d36b235da7abad3a10a92.tar.bz2
wallet-core-493fe38a603cc7a54a9d36b235da7abad3a10a92.zip
-check that withdrawal throws
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-wallet-exchange-update.ts12
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 (