Commit 6d33d28d authored by Wojciech Tyczynski's avatar Wojciech Tyczynski

Fix wait_test flakes

parent 1b429320
......@@ -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
}
}
......
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