diff --git a/staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go b/staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go index 5564f3c86f6..e30f086184a 100644 --- a/staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go +++ b/staging/src/k8s.io/apiserver/pkg/storage/testing/utils.go @@ -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 } }