aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-harness
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2024-04-04 13:21:50 -0600
committerIván Ávalos <avalos@disroot.org>2024-05-15 09:41:30 -0600
commit2223b3a6c72163038bee56087f2f576bb1651bc3 (patch)
treed91df975b4d60064615f77223d5fc761f4fd8224 /packages/taler-harness
parent0fedb95414a1296796e62b71a64fd6759f4aca6e (diff)
downloadwallet-core-2223b3a6c72163038bee56087f2f576bb1651bc3.tar.xz
harness: refactor env variable
Diffstat (limited to 'packages/taler-harness')
-rw-r--r--packages/taler-harness/src/harness/helpers.ts4
-rw-r--r--packages/taler-harness/src/integrationtests/test-payment.ts5
2 files changed, 2 insertions, 7 deletions
diff --git a/packages/taler-harness/src/harness/helpers.ts b/packages/taler-harness/src/harness/helpers.ts
index f1cdda7dd..1bea855cf 100644
--- a/packages/taler-harness/src/harness/helpers.ts
+++ b/packages/taler-harness/src/harness/helpers.ts
@@ -105,8 +105,6 @@ export interface EnvOptions {
mixedAgeRestriction?: boolean;
- withLibeufin?: boolean;
-
additionalExchangeConfig?(e: ExchangeService): void;
additionalMerchantConfig?(m: MerchantService): void;
additionalBankConfig?(b: BankService): void;
@@ -430,7 +428,7 @@ export async function createSimpleTestkudosEnvironmentV3(
httpPort: 8082,
};
- const bank: BankService = opts.withLibeufin === true
+ const bank: BankService = process.env["WITH_LIBEUFIN"] === "1"
? await LibeufinBankService.create(t, bc)
: await FakebankService.create(t, bc);
diff --git a/packages/taler-harness/src/integrationtests/test-payment.ts b/packages/taler-harness/src/integrationtests/test-payment.ts
index d7852c213..6037c3be2 100644
--- a/packages/taler-harness/src/integrationtests/test-payment.ts
+++ b/packages/taler-harness/src/integrationtests/test-payment.ts
@@ -23,7 +23,6 @@ import { GlobalTestState } from "../harness/harness.js";
import {
createSimpleTestkudosEnvironmentV3,
makeTestPaymentV2,
- withdrawViaBankV2,
withdrawViaBankV3,
} from "../harness/helpers.js";
@@ -34,9 +33,7 @@ export async function runPaymentTest(t: GlobalTestState) {
// Set up test environment
const { bankClient, walletClient, exchange, merchant } =
- await createSimpleTestkudosEnvironmentV3(t, undefined, {
- withLibeufin: process.env["WITH_LIBEUFIN"] === "1",
- });
+ await createSimpleTestkudosEnvironmentV3(t);
// Withdraw digital cash into the wallet.