diff options
author | Florian Dold <florian@dold.me> | 2022-09-23 22:26:13 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-09-23 22:26:13 +0200 |
commit | 1d7290487ac8174019e4d98a0c07fa5ab8dcaaf2 (patch) | |
tree | 34b038e020ef2fbab2499dc6f62d14f666de38e9 | |
parent | 2337ddab6126722b46a0ea0b6e244955a38b09df (diff) |
-fix test
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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); } }); |