Merge pull request #19196 from wojtek-t/fix_wait_test

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2015-12-30 07:54:05 -08:00
commit 558f69e613

View File

@ -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
}
}