mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Increase a bunch of timeouts to reduce flakes
This commit is contained in:
10
pkg/client/cache/reflector_test.go
vendored
10
pkg/client/cache/reflector_test.go
vendored
@@ -59,8 +59,8 @@ func TestCloseWatchChannelOnError(t *testing.T) {
|
||||
if ok {
|
||||
t.Errorf("Watch channel left open after cancellation")
|
||||
}
|
||||
case <-time.After(100 * time.Millisecond):
|
||||
t.Errorf("the cancellation is at least 99 milliseconds late")
|
||||
case <-time.After(util.ForeverTestTimeout):
|
||||
t.Errorf("the cancellation is at least %s late", util.ForeverTestTimeout.String())
|
||||
break
|
||||
}
|
||||
}
|
||||
@@ -88,8 +88,8 @@ func TestRunUntil(t *testing.T) {
|
||||
if ok {
|
||||
t.Errorf("Watch channel left open after stopping the watch")
|
||||
}
|
||||
case <-time.After(100 * time.Millisecond):
|
||||
t.Errorf("the cancellation is at least 99 milliseconds late")
|
||||
case <-time.After(util.ForeverTestTimeout):
|
||||
t.Errorf("the cancellation is at least %s late", util.ForeverTestTimeout.String())
|
||||
break
|
||||
}
|
||||
}
|
||||
@@ -98,7 +98,7 @@ func TestReflector_resyncChan(t *testing.T) {
|
||||
s := NewStore(MetaNamespaceKeyFunc)
|
||||
g := NewReflector(&testLW{}, &api.Pod{}, s, time.Millisecond)
|
||||
a, _ := g.resyncChan()
|
||||
b := time.After(100 * time.Millisecond)
|
||||
b := time.After(util.ForeverTestTimeout)
|
||||
select {
|
||||
case <-a:
|
||||
t.Logf("got timeout as expected")
|
||||
|
||||
Reference in New Issue
Block a user