Skip to content

Commit 558f69e

Browse files
author
k8s-merge-robot
committed
Merge pull request kubernetes#19196 from wojtek-t/fix_wait_test
Auto commit by PR queue bot
2 parents 2f11a6a + 6d33d28 commit 558f69e

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)