mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Fix wait_test flakes
This commit is contained in:
parent
1b429320cf
commit
6d33d28de8
@ -185,13 +185,12 @@ func TestPollForever(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// at most two poll notifications should be sent once we return from the condition
|
||||
// at most one poll notification should be sent once we return from the condition
|
||||
done <- struct{}{}
|
||||
go func() {
|
||||
for i := 0; i < 2; i++ {
|
||||
_, open := <-ch
|
||||
if open {
|
||||
<-complete
|
||||
if !open {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user