Skip to content

Commit

Permalink
When doing multiple actions in a step, continue if retryable
Browse files Browse the repository at this point in the history
Previously we would ignore all errors, even the ones that are not
expected, now, we will stop at any error that we are not
expecting.

Issue: ZENKO-4941
  • Loading branch information
williamlardier committed Dec 23, 2024
1 parent 3083021 commit dcd2c8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/ctst/common/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,8 +352,9 @@ When('the user tries to perform the current S3 action on the bucket {int} times
this.addToSaved('copyObject', `objectrepeatcopy-${Utils.randomString()}`);
}
await runActionAgainstBucket(this, this.getSaved<ActionPermissionsType>('currentAction').action);
if (this.getResult().err) {
if (this.getResult().err && this.getResult().retryable?.throttling !== true) {
this.logger.debug('Error during repeated action', { error: this.getResult().err });
break;
}
await Utils.sleep(delay);
}
Expand Down

0 comments on commit dcd2c8a

Please sign in to comment.