Fix a flake in the kubelet test.

This commit is contained in:
Brendan Burns 2015-09-21 16:45:21 -07:00
parent 9df172b06a
commit e845c6a4e6

View File

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