From 5c809c3d9b458a47313a25e300d3c34e5700678a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 4 Sep 2019 15:28:19 +0200 Subject: wait for refreshes to finish before exiting integration test --- src/headless/integrationtest.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/headless/integrationtest.ts') diff --git a/src/headless/integrationtest.ts b/src/headless/integrationtest.ts index 3b0069c21..3e60d418a 100644 --- a/src/headless/integrationtest.ts +++ b/src/headless/integrationtest.ts @@ -83,5 +83,8 @@ export async function runIntegrationTest(args: { throw Error("payment did not succeed"); } + const refreshRes = await myWallet.refreshDirtyCoins(); + console.log(`waited to refresh ${refreshRes.numRefreshed} coins`); + myWallet.stop(); } -- cgit v1.2.3