mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Merge pull request #123997 from wojtek-t/speedup_watch_test
Relax WatchSemanticsTest to make it faster
This commit is contained in:
commit
41f9c708fb
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user