From 6f251f37d487aaab18dc9c66f91191fcd296b288 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Thu, 4 Apr 2024 13:21:50 -0600 Subject: harness: refactor env variable --- packages/taler-harness/src/harness/helpers.ts | 4 +--- packages/taler-harness/src/integrationtests/test-payment.ts | 5 +---- 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. -- cgit v1.2.3