Fix a flaky test by draining the worker pool after syncing.

This commit is contained in:
Brendan Burns 2014-10-31 09:52:01 -07:00
parent 81c538806b
commit 69ca97a41c

View File

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