Fix wait_test flakes

This commit is contained in:
Wojciech Tyczynski 2015-12-30 14:03:38 +01:00
parent 1b429320cf
commit 6d33d28de8

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