Merge pull request #123997 from wojtek-t/speedup_watch_test
Relax WatchSemanticsTest to make it faster
This commit is contained in:
@@ -197,7 +197,8 @@ func testCheckNoMoreResults(t *testing.T, w watch.Interface) {
|
|||||||
select {
|
select {
|
||||||
case e := <-w.ResultChan():
|
case e := <-w.ResultChan():
|
||||||
t.Errorf("Unexpected: %#v event received, expected no events", e)
|
t.Errorf("Unexpected: %#v event received, expected no events", e)
|
||||||
case <-time.After(time.Second):
|
// We consciously make the timeout short here to speed up tests.
|
||||||
|
case <-time.After(100 * time.Millisecond):
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user