Merge pull request #110071 from gjkim42/deflake-TestStaticPodExclusion

Deflake TestStaticPodExclusion
This commit is contained in:
Kubernetes Prow Robot 2022-07-29 13:17:43 -07:00 committed by GitHub
commit 0b57f4ed4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -852,6 +852,8 @@ func TestStaticPodExclusion(t *testing.T) {
Pod: newNamedPod("5-static", "test1", "pod1", true),
UpdateType: kubetypes.SyncPodUpdate,
})
// Wait for the previous work to be delivered to the worker
drainAllWorkers(podWorkers)
channels.Channel("5-static").Hold()
podWorkers.UpdatePod(UpdatePodOptions{
Pod: newNamedPod("5-static", "test1", "pod1", true),