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