From f411d37363071750e1a7fd0de68b074b2c5c9c21 Mon Sep 17 00:00:00 2001 From: guangxuli Date: Wed, 21 Sep 2016 13:04:03 +0800 Subject: [PATCH] break the loop if pod name was equal --- test/e2e/framework/util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 7f5a81063ca..f7e3e7847ff 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -1549,6 +1549,7 @@ func WaitForPodToDisappear(c *client.Client, ns, podName string, label labels.Se if pod.Name == podName { Logf("Pod %s still exists", podName) found = true + break } } if !found {