Skip to content

Commit

Permalink
[OSSM-8243] Fail test execution when UntilSuccess reaches max attempt (
Browse files Browse the repository at this point in the history
  • Loading branch information
mkralik3 authored Oct 11, 2024
1 parent 95a114c commit 414bbb2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/retry/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ func UntilSuccessWithOptions(t test.TestHelper, options RetryOptions, f func(t t
if options.logAttempts && env.IsLogFailedRetryAttempts() {
t.Logf("Last attempt (%d/%d) failed.", i+1, options.maxAttempts)
}
t.T().FailNow()
} else {
if options.logAttempts && env.IsLogFailedRetryAttempts() {
if options.delayBetweenAttempts == defaultOptions.delayBetweenAttempts {
Expand Down

0 comments on commit 414bbb2

Please sign in to comment.