Relax WatchSemanticsTest to make it faster

This commit is contained in:
Wojciech Tyczyński 2024-03-19 20:23:56 +01:00
parent 308d664e3f
commit a26ee12395

View File

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