summaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-wallet-backup-doublespend.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-wallet-backup-doublespend.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-wallet-backup-doublespend.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-wallet-backup-doublespend.ts b/packages/taler-harness/src/integrationtests/test-wallet-backup-doublespend.ts
index c761c4fb0..abcd71a3b 100644
--- a/packages/taler-harness/src/integrationtests/test-wallet-backup-doublespend.ts
+++ b/packages/taler-harness/src/integrationtests/test-wallet-backup-doublespend.ts
@@ -21,18 +21,18 @@ import { MerchantApiClient, PreparePayResultType } from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { GlobalTestState } from "../harness/harness.js";
import {
- createSimpleTestkudosEnvironmentV2,
+ createSimpleTestkudosEnvironmentV3,
createWalletDaemonWithClient,
makeTestPaymentV2,
- withdrawViaBankV2,
+ withdrawViaBankV3,
} from "../harness/helpers.js";
import { SyncService } from "../harness/sync.js";
export async function runWalletBackupDoublespendTest(t: GlobalTestState) {
// Set up test environment
- const { commonDb, merchant, walletClient, bank, exchange } =
- await createSimpleTestkudosEnvironmentV2(t);
+ const { commonDb, merchant, walletClient, bankClient, exchange } =
+ await createSimpleTestkudosEnvironmentV3(t);
const merchantClient = new MerchantApiClient(merchant.makeInstanceBaseUrl());
@@ -56,9 +56,9 @@ export async function runWalletBackupDoublespendTest(t: GlobalTestState) {
name: sync.baseUrl,
});
- await withdrawViaBankV2(t, {
+ await withdrawViaBankV3(t, {
walletClient,
- bank,
+ bankClient,
exchange,
amount: "TESTKUDOS:10",
});
@@ -161,9 +161,9 @@ export async function runWalletBackupDoublespendTest(t: GlobalTestState) {
// FIXME: wait for a notification that indicates insufficient funds!
- await withdrawViaBankV2(t, {
+ await withdrawViaBankV3(t, {
walletClient: walletClientTwo,
- bank,
+ bankClient,
exchange,
amount: "TESTKUDOS:50",
});