mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
apiserver/storage/cacher: decrease running time of TestWatchNotHangingOnStartupFailure
before: go test -v -race -count 1 -run ^TestWatchNotHangingOnStartupFailure$ ok k8s.io/apiserver/pkg/storage/cacher 6.775s after: go test -v -race -count 1 -run ^TestWatchNotHangingOnStartupFailure$ ok k8s.io/apiserver/pkg/storage/cacher 2.781s
This commit is contained in:
parent
3a75a8c8d9
commit
f5d945eb43
@ -464,7 +464,7 @@ func TestWatchNotHangingOnStartupFailure(t *testing.T) {
|
||||
// terminate instead of hanging forever.
|
||||
go func() {
|
||||
defer cancel()
|
||||
cacher.clock.Sleep(5 * time.Second)
|
||||
cacher.clock.Sleep(1 * time.Second)
|
||||
}()
|
||||
|
||||
// Watch hangs waiting on watchcache being initialized.
|
||||
|
Loading…
Reference in New Issue
Block a user