From 825d2c4352022e7397854b2bd9ba7d3589873c07 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 15 Feb 2023 23:32:42 +0100 Subject: make wallet-cli runnable under qtart --- packages/taler-harness/src/harness/harness.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'packages/taler-harness/src/harness') diff --git a/packages/taler-harness/src/harness/harness.ts b/packages/taler-harness/src/harness/harness.ts index 0b7ba14cf..518b98d82 100644 --- a/packages/taler-harness/src/harness/harness.ts +++ b/packages/taler-harness/src/harness/harness.ts @@ -41,17 +41,15 @@ import { MerchantTemplateAddDetails, parsePaytoUri, stringToBytes, + TalerError, TalerProtocolDuration, WalletNotification, } from "@gnu-taler/taler-util"; import { - BankAccessApi, BankApi, BankServiceHandle, HarnessExchangeBankAccount, - NodeHttpLib, openPromise, - TalerError, WalletCoreApiClient, } from "@gnu-taler/taler-wallet-core"; import { deepStrictEqual } from "assert"; @@ -83,6 +81,7 @@ import { RemoteWallet, WalletNotificationWaiter, } from "@gnu-taler/taler-wallet-core/remote"; +import { createPlatformHttpLib } from "@gnu-taler/taler-util/http"; const logger = new Logger("harness.ts"); @@ -507,7 +506,7 @@ class LibEuFinBankService extends BankServiceBase implements BankServiceHandle { sandboxProc: ProcessWrapper | undefined; nexusProc: ProcessWrapper | undefined; - http = new NodeHttpLib(); + http = createPlatformHttpLib(); static async create( gc: GlobalTestState, @@ -794,7 +793,7 @@ export class FakebankService { proc: ProcessWrapper | undefined; - http = new NodeHttpLib(); + http = createPlatformHttpLib(); // We store "created" accounts during setup and // register them after startup. -- cgit v1.2.3