From 1d7290487ac8174019e4d98a0c07fa5ab8dcaaf2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 23 Sep 2022 22:26:13 +0200 Subject: -fix test --- packages/taler-wallet-cli/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages/taler-wallet-cli') diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 5aa7c49f1..6613f256a 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -367,6 +367,7 @@ walletCli help: "Run until no more work is left.", }) .maybeOption("maxRetries", ["--max-retries"], clk.INT) + .flag("failOnMaxRetries", ["--fail-on-max-retries"]) .action(async (args) => { await withWallet(args, async (wallet) => { logger.info("running until pending operations are finished"); @@ -375,7 +376,7 @@ walletCli stopWhenDone: true, }); wallet.ws.stop(); - if (resp.retriesExceeded) { + if (resp.retriesExceeded && args.finishPendingOpt.failOnMaxRetries) { process.exit(EXIT_RETRIES_EXCEEDED); } }); -- cgit v1.2.3