-fix test

This commit is contained in:
Florian Dold 2022-09-23 22:26:13 +02:00
parent 2337ddab61
commit 1d7290487a
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -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);
}
});