Deflake TestStaticPodExclusion

This commit is contained in:
Gunju Kim 2022-05-16 23:29:07 +09:00
parent 45844049fc
commit 563c99599f
No known key found for this signature in database
GPG Key ID: 9300A528F3F0DAB7

View File

@ -848,6 +848,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),