diff options
author | Florian Dold <florian@dold.me> | 2021-06-22 12:18:12 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-06-22 12:18:12 +0200 |
commit | 7383b89cabbfdb8f2fbd6bb9e7b64d09385f7bea (patch) | |
tree | 7700b10f5dad217c0d16b5ac8182cd3af0127abb /packages/taler-wallet-core/src/operations/testing.ts | |
parent | c4f46cb9d2f755d15e84b639bc6f7bb2546874ce (diff) | |
download | wallet-core-7383b89cabbfdb8f2fbd6bb9e7b64d09385f7bea.tar.xz |
get rid of cyclic imports
Diffstat (limited to 'packages/taler-wallet-core/src/operations/testing.ts')
-rw-r--r-- | packages/taler-wallet-core/src/operations/testing.ts | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/packages/taler-wallet-core/src/operations/testing.ts b/packages/taler-wallet-core/src/operations/testing.ts index c9786801b..dd7d8c7cb 100644 --- a/packages/taler-wallet-core/src/operations/testing.ts +++ b/packages/taler-wallet-core/src/operations/testing.ts @@ -38,7 +38,6 @@ import { createTalerWithdrawReserve } from "./reserves.js"; import { InternalWalletState } from "../common.js"; import { confirmPay, preparePayForUri } from "./pay.js"; import { getBalances } from "./balance.js"; -import { runUntilDone } from "../wallet.js"; import { applyRefund } from "./refund.js"; const logger = new Logger("operations/testing.ts"); @@ -333,7 +332,7 @@ export async function runIntegrationTest( args.bankBaseUrl, args.exchangeBaseUrl, ); - await runUntilDone(ws); + await ws.runUntilDone(); logger.info("done withdrawing test balance"); const balance = await getBalances(ws); @@ -348,7 +347,7 @@ export async function runIntegrationTest( await makePayment(ws, myMerchant, args.amountToSpend, "hello world"); // Wait until the refresh is done - await runUntilDone(ws); + await ws.runUntilDone(); logger.trace("withdrawing test balance for refund"); const withdrawAmountTwo = Amounts.parseOrThrow(`${currency}:18`); @@ -364,7 +363,7 @@ export async function runIntegrationTest( ); // Wait until the withdraw is done - await runUntilDone(ws); + await ws.runUntilDone(); const { orderId: refundOrderId } = await makePayment( ws, @@ -388,7 +387,7 @@ export async function runIntegrationTest( logger.trace("integration test: applied refund"); // Wait until the refund is done - await runUntilDone(ws); + await ws.runUntilDone(); logger.trace("integration test: making payment after refund"); @@ -401,7 +400,7 @@ export async function runIntegrationTest( logger.trace("integration test: make payment done"); - await runUntilDone(ws); + await ws.runUntilDone(); logger.trace("integration test: all done!"); } |