Merge pull request #123997 from wojtek-t/speedup_watch_test
Relax WatchSemanticsTest to make it faster Kubernetes-commit: 41f9c708fbb592dbfe4f926efc1aed2bf46f8ef1
This commit is contained in:
commit
5364ad827e
|
|
@ -197,7 +197,8 @@ func testCheckNoMoreResults(t *testing.T, w watch.Interface) {
|
|||
select {
|
||||
case e := <-w.ResultChan():
|
||||
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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue