summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2024-04-04 16:11:03 +0200
committerIván Ávalos <avalos@disroot.org>2024-04-12 11:42:56 -0600
commitbe698f1a180cfbf794df8c35e70f29cb50a58bb0 (patch)
treeb46bf7d27cd09f3745f7847a81f17f113a9d4370
parent537ab7dc33433f8088cac8d7e716f031acb62fd6 (diff)
downloadwallet-core-be698f1a180cfbf794df8c35e70f29cb50a58bb0.tar.gz
wallet-core-be698f1a180cfbf794df8c35e70f29cb50a58bb0.tar.bz2
wallet-core-be698f1a180cfbf794df8c35e70f29cb50a58bb0.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!",