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/bench1.ts | |
parent | e944c27e43474e8db464fbc593607e4e9d89576d (diff) | |
download | wallet-core-a181ee06e4b52cb35e00ff8c86acff315135faf2.tar.gz wallet-core-a181ee06e4b52cb35e00ff8c86acff315135faf2.tar.bz2 wallet-core-a181ee06e4b52cb35e00ff8c86acff315135faf2.zip |
wallet-core: unify handling of run-until-done, simplify waiter implementation
Diffstat (limited to 'packages/taler-harness/src/bench1.ts')
-rw-r--r-- | packages/taler-harness/src/bench1.ts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/packages/taler-harness/src/bench1.ts b/packages/taler-harness/src/bench1.ts index 428114e0e..216760260 100644 --- a/packages/taler-harness/src/bench1.ts +++ b/packages/taler-harness/src/bench1.ts @@ -29,7 +29,6 @@ import { } from "@gnu-taler/taler-util"; import { AccessStats, - applyRunConfigDefaults, createNativeWalletHost2, Wallet, WalletApiOperation, @@ -105,9 +104,7 @@ export async function runBench1(configJson: any): Promise<void> { exchangeBaseUrl: b1conf.exchange, }); - await wallet.runTaskLoop({ - stopWhenDone: true, - }); + await wallet.client.call(WalletApiOperation.TestingWaitTasksDone, {}); logger.info( `Finished withdrawal amount=${withdrawAmount} time=${Date.now() - start}`, @@ -123,9 +120,7 @@ export async function runBench1(configJson: any): Promise<void> { depositPaytoUri: b1conf.payto, }); - await wallet.runTaskLoop({ - stopWhenDone: true, - }); + await wallet.client.call(WalletApiOperation.TestingWaitTasksDone, {}); logger.info(`Finished deposit amount=10 time=${Date.now() - start}`); } |