gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 05/10: harness: refactor env variable


From: gnunet
Subject: [taler-wallet-core] 05/10: harness: refactor env variable
Date: Wed, 15 May 2024 17:43:40 +0200

This is an automated email from the git hooks/post-receive script.

ivan-avalos pushed a commit to branch master
in repository wallet-core.

commit 2223b3a6c72163038bee56087f2f576bb1651bc3
Author: Iván Ávalos <avalos@disroot.org>
AuthorDate: Thu Apr 4 13:21:50 2024 -0600

    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.
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]