From e74cabe5453be80c86236fe1552852120179d4df Mon Sep 17 00:00:00 2001 From: mYmNeo Date: Fri, 20 Oct 2017 09:41:18 +0800 Subject: [PATCH] Correct TestUpdatePod comment Signed-off-by: mYmNeo --- pkg/kubelet/pod_workers_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/pod_workers_test.go b/pkg/kubelet/pod_workers_test.go index a3b073b7714..ff13baa99ca 100644 --- a/pkg/kubelet/pod_workers_test.go +++ b/pkg/kubelet/pod_workers_test.go @@ -128,7 +128,6 @@ func drainWorkers(podWorkers *podWorkers, numPods int) { func TestUpdatePod(t *testing.T) { podWorkers, processed := createPodWorkers() - // Check whether all pod updates will be processed. numPods := 20 for i := 0; i < numPods; i++ { for j := i; j < numPods; j++ { @@ -151,6 +150,7 @@ func TestUpdatePod(t *testing.T) { continue } + // PodWorker guarantees the first and the last event will be processed first := 0 last := len(processed[uid]) - 1 if processed[uid][first].name != string(0) {