Skip to content

Commit 6d33d28

Browse files
committed
Fix wait_test flakes
1 parent 1b42932 commit 6d33d28

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/util/wait/wait_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,12 @@ func TestPollForever(t *testing.T) {
185185
}
186186
}
187187

188-
// at most two poll notifications should be sent once we return from the condition
188+
// at most one poll notification should be sent once we return from the condition
189189
done <- struct{}{}
190190
go func() {
191191
for i := 0; i < 2; i++ {
192192
_, open := <-ch
193-
if open {
194-
<-complete
193+
if !open {
195194
return
196195
}
197196
}

0 commit comments

Comments
 (0)