mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #2096 from brendandburns/master
Fix a flaky test by draining the worker pool after syncing.
This commit is contained in:
commit
bf30e91c56
@ -182,8 +182,8 @@ func TestSyncPodsDoesNothing(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("unexpected error: %v", err)
|
t.Errorf("unexpected error: %v", err)
|
||||||
}
|
}
|
||||||
|
kubelet.drainWorkers()
|
||||||
verifyCalls(t, fakeDocker, []string{"list"})
|
verifyCalls(t, fakeDocker, []string{"list", "list", "inspect_container", "inspect_container"})
|
||||||
}
|
}
|
||||||
|
|
||||||
// drainWorkers waits until all workers are done. Should only used for testing.
|
// drainWorkers waits until all workers are done. Should only used for testing.
|
||||||
|
Loading…
Reference in New Issue
Block a user