aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-04-04 16:11:03 +0200
committerIván Ávalos <avalos@disroot.org>2024-05-15 09:41:30 -0600
commit4ec57e7b2396378c12900e99d5ec8214e44bf766 (patch)
tree0b9a3ddb14031c2a08d38d5e39ddba47b8b64e33
parent74fa4b3e392908bf99450a23f80b40a65897dd83 (diff)
downloadwallet-core-4ec57e7b2396378c12900e99d5ec8214e44bf766.tar.gz
wallet-core-4ec57e7b2396378c12900e99d5ec8214e44bf766.tar.bz2
wallet-core-4ec57e7b2396378c12900e99d5ec8214e44bf766.zip
-make test work
-rw-r--r--packages/taler-harness/src/harness/helpers.ts2
-rw-r--r--packages/taler-harness/src/integrationtests/test-payment.ts18
2 files changed, 12 insertions, 8 deletions
diff --git a/packages/taler-harness/src/harness/helpers.ts b/packages/taler-harness/src/harness/helpers.ts
index 3835e8b03..8891a9316 100644
--- a/packages/taler-harness/src/harness/helpers.ts
+++ b/packages/taler-harness/src/harness/helpers.ts
@@ -448,7 +448,7 @@ export async function createSimpleTestkudosEnvironmentV3(
database: db.connStr,
});
- const receiverName = "Exchange";
+ const receiverName = "exchange";
const exchangeBankUsername = "exchange";
const exchangeBankPassword = "mypw";
const exchangePlainPayto = opts.withLibeufin === true
diff --git a/packages/taler-harness/src/integrationtests/test-payment.ts b/packages/taler-harness/src/integrationtests/test-payment.ts
index aaf83dd4b..da9f97bf4 100644
--- a/packages/taler-harness/src/integrationtests/test-payment.ts
+++ b/packages/taler-harness/src/integrationtests/test-payment.ts
@@ -17,14 +17,14 @@
/**
* Imports.
*/
+import { j2s } from "@gnu-taler/taler-util";
import { WalletApiOperation } from "@gnu-taler/taler-wallet-core";
import { GlobalTestState } from "../harness/harness.js";
import {
createSimpleTestkudosEnvironmentV3,
- withdrawViaBankV3,
makeTestPaymentV2,
+ withdrawViaBankV2,
} from "../harness/helpers.js";
-import { j2s } from "@gnu-taler/taler-util";
/**
* Run test for basic, bank-integrated withdrawal and payment.
@@ -32,19 +32,23 @@ import { j2s } from "@gnu-taler/taler-util";
export async function runPaymentTest(t: GlobalTestState) {
// Set up test environment
- const { walletClient, bankClient, exchange, merchant } =
+ const { bank, walletClient, exchange, merchant } =
await createSimpleTestkudosEnvironmentV3(t, undefined, {
withLibeufin: false,
});
// Withdraw digital cash into the wallet.
-
- t.assertTrue(bankClient !== undefined);
- await withdrawViaBankV3(t, { walletClient, bankClient, exchange, amount: "TESTKUDOS:20" });
+
+ await withdrawViaBankV2(t, {
+ walletClient,
+ exchange,
+ amount: "TESTKUDOS:20",
+ bank,
+ });
await walletClient.call(WalletApiOperation.TestingWaitTransactionsFinal, {});
- console.log("line 51")
+ console.log("line 51");
const order = {
summary: "Buy me!",