Merge pull request #123997 from wojtek-t/speedup_watch_test

Relax WatchSemanticsTest to make it faster
This commit is contained in:
Kubernetes Prow Robot 2024-04-18 02:11:02 -07:00 committed by GitHub
commit 41f9c708fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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
}
}