diff options
author | Florian Dold <florian@dold.me> | 2021-04-07 19:29:51 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-04-07 19:29:51 +0200 |
commit | 4fa88007f958796d7fe65d0fe4f6f45fcf953887 (patch) | |
tree | 4f6e5798cc74b19b6eda13dfcd5daa855a5c8c9a /packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts | |
parent | 29d710c392c2b28e8c8c2a177c8de40061a58e77 (diff) | |
download | wallet-core-4fa88007f958796d7fe65d0fe4f6f45fcf953887.tar.xz |
get coin re-selection after accidental double spending to work
Diffstat (limited to 'packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts')
-rw-r--r-- | packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts b/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts index ef53046cd..b9bc30a95 100644 --- a/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts +++ b/packages/taler-wallet-cli/src/integrationtests/test-wallet-backup-doublespend.ts @@ -18,11 +18,7 @@ * Imports. */ import { PreparePayResultType } from "@gnu-taler/taler-util"; -import { - GlobalTestState, - WalletCli, - MerchantPrivateApi, -} from "./harness"; +import { GlobalTestState, WalletCli, MerchantPrivateApi } from "./harness"; import { createSimpleTestkudosEnvironment, makeTestPayment, @@ -133,5 +129,19 @@ export async function runWalletBackupDoublespendTest(t: GlobalTestState) { }); console.log(res); + + // FIXME: wait for a notification that indicates insufficient funds! + + await withdrawViaBank(t, { + wallet: wallet2, + bank, + exchange, + amount: "TESTKUDOS:50", + }); + + const bal = await wallet2.getBalances(); + console.log("bal", bal); + + await wallet2.runUntilDone(); } } |