We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 22772d0 + 1d92314 commit 74053d5Copy full SHA for 74053d5
staging/src/k8s.io/client-go/tools/watch/retrywatcher_test.go
@@ -587,11 +587,12 @@ func TestRetryWatcherToFinishWithUnreadEvents(t *testing.T) {
587
588
watcher.Stop()
589
590
+ maxTime := time.Second
591
select {
592
case <-watcher.Done():
593
break
- case <-time.After(10 * time.Millisecond):
594
- t.Error("Failed to close the watcher")
+ case <-time.After(maxTime):
595
+ t.Errorf("The watcher failed to be closed in %s", maxTime)
596
}
597
598
// RetryWatcher result channel should be closed
0 commit comments