mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #19196 from wojtek-t/fix_wait_test
Auto commit by PR queue bot
This commit is contained in:
commit
558f69e613
@ -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{}{}
|
done <- struct{}{}
|
||||||
go func() {
|
go func() {
|
||||||
for i := 0; i < 2; i++ {
|
for i := 0; i < 2; i++ {
|
||||||
_, open := <-ch
|
_, open := <-ch
|
||||||
if open {
|
if !open {
|
||||||
<-complete
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user