From 3c9306e521822c8a05c572f8487d9f87ef33c401 Mon Sep 17 00:00:00 2001 From: liang chenye Date: Thu, 5 May 2016 14:23:44 +0800 Subject: [PATCH] fix #24937: flake pod not found Signed-off-by: liang chenye --- test/e2e_node/container_manager_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/e2e_node/container_manager_test.go b/test/e2e_node/container_manager_test.go index d70fbd7277f..2ca9af75f87 100644 --- a/test/e2e_node/container_manager_test.go +++ b/test/e2e_node/container_manager_test.go @@ -24,6 +24,7 @@ import ( apierrs "k8s.io/kubernetes/pkg/api/errors" "k8s.io/kubernetes/pkg/client/restclient" client "k8s.io/kubernetes/pkg/client/unversioned" + "k8s.io/kubernetes/pkg/util" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" @@ -38,9 +39,10 @@ var _ = Describe("Kubelet Container Manager", func() { Describe("oom score adjusting", func() { namespace := "oom-adj" Context("when scheduling a busybox command that always fails in a pod", func() { - podName := "bin-false" + var podName string BeforeEach(func() { + podName = "bin-false" + string(util.NewUUID()) pod := &api.Pod{ ObjectMeta: api.ObjectMeta{ Name: podName,