mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
fix broken retry tests
This commit is contained in:
@@ -57,9 +57,11 @@ func TestRetryTimerWithNoJitter(t *testing.T) {
|
||||
// Loop through the maximum possible attempt.
|
||||
for i = range attemptCh {
|
||||
if i == 30 {
|
||||
cancel()
|
||||
break
|
||||
}
|
||||
}
|
||||
cancel()
|
||||
|
||||
_, ok := <-attemptCh
|
||||
if ok {
|
||||
t.Fatal("Attempt counter should be closed")
|
||||
|
||||
Reference in New Issue
Block a user