Skip to content

Commit 530360f

Browse files
committed
retry: deflake TestRetryWithMaxDurationAndMaxRetries
Previously, the time bound for the retry test was quite small. So an overloaded or slow test runner may hit the timeout before the goroutine was scheduled for max retries. Fixes: #154160 Release note: none
1 parent 0eccabf commit 530360f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/util/retry/retry_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ func TestRetryWithMaxDurationAndMaxRetries(t *testing.T) {
566566
InitialBackoff: time.Millisecond,
567567
MaxBackoff: time.Millisecond * 20,
568568
Multiplier: 2,
569-
MaxDuration: time.Millisecond * 50,
569+
MaxDuration: time.Second,
570570
MaxRetries: 3,
571571
}
572572

0 commit comments

Comments
 (0)