mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Fix maxTimes comment to clarify infinity waits and add a PollInfinite function.
This commit is contained in:
@@ -91,9 +91,10 @@ func TestPollForever(t *testing.T) {
|
||||
}
|
||||
return false, nil
|
||||
})
|
||||
if err := Poll(time.Microsecond, 0, f); err != nil {
|
||||
if err := PollInfinite(time.Microsecond, f); err != nil {
|
||||
t.Fatalf("unexpected error %v", err)
|
||||
}
|
||||
|
||||
close(ch)
|
||||
complete <- struct{}{}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user