diff options
author | Florian Dold <florian@dold.me> | 2024-04-22 23:29:07 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-04-22 23:29:07 +0200 |
commit | a181ee06e4b52cb35e00ff8c86acff315135faf2 (patch) | |
tree | 9961ae277d861f93818c253e3992ad25128f6377 /packages/taler-harness/src/bench3.ts | |
parent | e944c27e43474e8db464fbc593607e4e9d89576d (diff) | |
download | wallet-core-a181ee06e4b52cb35e00ff8c86acff315135faf2.tar.xz |
wallet-core: unify handling of run-until-done, simplify waiter implementation
Diffstat (limited to 'packages/taler-harness/src/bench3.ts')
-rw-r--r-- | packages/taler-harness/src/bench3.ts | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/packages/taler-harness/src/bench3.ts b/packages/taler-harness/src/bench3.ts index f138dff68..a5bc094df 100644 --- a/packages/taler-harness/src/bench3.ts +++ b/packages/taler-harness/src/bench3.ts @@ -115,9 +115,7 @@ export async function runBench3(configJson: any): Promise<void> { exchangeBaseUrl: b3conf.exchange, }); - await wallet.runTaskLoop({ - stopWhenDone: true, - }); + await wallet.client.call(WalletApiOperation.TestingWaitTasksDone, {}); logger.info( `Finished withdrawal amount=${withdrawAmount} time=${Date.now() - start}`, @@ -135,9 +133,7 @@ export async function runBench3(configJson: any): Promise<void> { depositPaytoUri: payto, }); - await wallet.runTaskLoop({ - stopWhenDone: true, - }); + await wallet.client.call(WalletApiOperation.TestingWaitTasksDone, {}); logger.info(`Finished deposit amount=10 time=${Date.now() - start}`); } |