diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-12-15 17:48:22 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-12-15 17:48:22 +0100 |
commit | 7cc3b10824683c601a9051ef98e7c1478a801db8 (patch) | |
tree | f40f55160acf64d958aff638c13735487fbd5937 /src/headless/integrationtest.ts | |
parent | 985c90e0adc80301ee842bc290041b6a7d59d51e (diff) | |
download | wallet-core-7cc3b10824683c601a9051ef98e7c1478a801db8.tar.xz |
don't throttle the integration test
Diffstat (limited to 'src/headless/integrationtest.ts')
-rw-r--r-- | src/headless/integrationtest.ts | 14 |
1 files changed, 11 insertions, 3 deletions
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(); |