From 7cc3b10824683c601a9051ef98e7c1478a801db8 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 15 Dec 2019 17:48:22 +0100 Subject: don't throttle the integration test --- src/headless/integrationtest.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/headless/integrationtest.ts') diff --git a/src/headless/integrationtest.ts b/src/headless/integrationtest.ts index 632ce8f60..7c513e70e 100644 --- a/src/headless/integrationtest.ts +++ b/src/headless/integrationtest.ts @@ -20,8 +20,10 @@ import { getDefaultNodeWallet, withdrawTestBalance } from "./helpers"; import { MerchantBackendConnection } from "./merchant"; +import { Logger } from "../util/logging"; +import { NodeHttpLib } from "./NodeHttpLib"; -const enableTracing = false; +const logger = new Logger("integrationtest.ts"); export async function runIntegrationTest(args: { exchangeBaseUrl: string; @@ -31,10 +33,16 @@ export async function runIntegrationTest(args: { amountToWithdraw: string; amountToSpend: string; }) { - console.log("running test with", args); - const myWallet = await getDefaultNodeWallet(); + logger.info("running test with arguments", args); + const myHttpLib = new NodeHttpLib(); + myHttpLib.setThrottling(false); + + const myWallet = await getDefaultNodeWallet({ httpLib: myHttpLib }); + + logger.info("withdrawing test balance"); await withdrawTestBalance(myWallet, args.amountToWithdraw, args.bankBaseUrl, args.exchangeBaseUrl); + logger.info("done withdrawing test balance"); const balance = await myWallet.getBalances(); -- cgit v1.2.3