mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-12 13:31:52 +00:00
Fix a flake in the kubelet test.
This commit is contained in:
parent
9df172b06a
commit
e845c6a4e6
@ -336,6 +336,9 @@ func TestSyncLoopAbort(t *testing.T) {
|
||||
kubelet := testKubelet.kubelet
|
||||
kubelet.lastTimestampRuntimeUp = time.Now()
|
||||
kubelet.networkConfigured = true
|
||||
// The syncLoop waits on time.After(resyncInterval), set it really big so that we don't race for
|
||||
// the channel close
|
||||
kubelet.resyncInterval = time.Second * 30
|
||||
|
||||
ch := make(chan PodUpdate)
|
||||
close(ch)
|
||||
|
Loading…
Reference in New Issue
Block a user