From 563c99599fb368ab664852ce6fa1d8a0334d5d02 Mon Sep 17 00:00:00 2001 From: Gunju Kim Date: Mon, 16 May 2022 23:29:07 +0900 Subject: [PATCH] Deflake TestStaticPodExclusion --- pkg/kubelet/pod_workers_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/kubelet/pod_workers_test.go b/pkg/kubelet/pod_workers_test.go index eafc826b85a..a68827a4e56 100644 --- a/pkg/kubelet/pod_workers_test.go +++ b/pkg/kubelet/pod_workers_test.go @@ -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),