aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness/src/integrationtests/test-wallet-balance-notifications.ts
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-04-04 23:08:21 -0600
committerIván Ávalos <avalos@disroot.org>2024-05-15 09:41:30 -0600
commitf4160c6d187794a643e4d4e7556338e69700a2d2 (patch)
tree94ef2fca5d32d4172cbbfec6b7cc9480e537cf2f /packages/taler-harness/src/integrationtests/test-wallet-balance-notifications.ts
parent2223b3a6c72163038bee56087f2f576bb1651bc3 (diff)
downloadwallet-core-f4160c6d187794a643e4d4e7556338e69700a2d2.tar.xz
harness: make some tests run against libeufin
Diffstat (limited to 'packages/taler-harness/src/integrationtests/test-wallet-balance-notifications.ts')
-rw-r--r--packages/taler-harness/src/integrationtests/test-wallet-balance-notifications.ts13
1 files changed, 8 insertions, 5 deletions
diff --git a/packages/taler-harness/src/integrationtests/test-wallet-balance-notifications.ts b/packages/taler-harness/src/integrationtests/test-wallet-balance-notifications.ts
index 290ef7e2d..1586e2a72 100644
--- a/packages/taler-harness/src/integrationtests/test-wallet-balance-notifications.ts
+++ b/packages/taler-harness/src/integrationtests/test-wallet-balance-notifications.ts
@@ -24,7 +24,7 @@ import {
} from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { GlobalTestState } from "../harness/harness.js";
-import { createSimpleTestkudosEnvironmentV2 } from "../harness/helpers.js";
+import { createSimpleTestkudosEnvironmentV3 } from "../harness/helpers.js";
/**
* Test behavior when an order is deleted while the wallet is paying for it.
@@ -32,14 +32,17 @@ import { createSimpleTestkudosEnvironmentV2 } from "../harness/helpers.js";
export async function runWalletBalanceNotificationsTest(t: GlobalTestState) {
// Set up test environment
- const { walletClient, bank, exchange, merchant, walletService } =
- await createSimpleTestkudosEnvironmentV2(t);
+ const { walletClient, bankClient, exchange, walletService } =
+ await createSimpleTestkudosEnvironmentV3(t);
const amount = "TESTKUDOS:20";
- const bankClient = new TalerCorebankApiClient(bank.corebankApiBaseUrl);
-
const user = await bankClient.createRandomBankUser();
+ bankClient.setAuth({
+ username: user.username,
+ password: user.password,
+ });
+
const wop = await bankClient.createWithdrawalOperation(user.username, amount);
// Hand it to the wallet