Commit 558f69e6 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #19196 from wojtek-t/fix_wait_test

Auto commit by PR queue bot
parents 2f11a6a0 6d33d28d
...@@ -185,13 +185,12 @@ func TestPollForever(t *testing.T) { ...@@ -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
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment