From d4602bb909c918258080478afe45e2a8ebaf7732 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Sat, 17 Oct 2015 12:15:00 +0200 Subject: [PATCH] Remove race of waitForRCPodsRunning Running check and internal pod store --- test/e2e/util.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/util.go b/test/e2e/util.go index 4bc8e78e794..1c4d2d33606 100644 --- a/test/e2e/util.go +++ b/test/e2e/util.go @@ -1533,6 +1533,9 @@ func waitForRCPodsRunning(c *client.Client, ns, rcName string) error { waitLoop: for start := time.Now(); time.Since(start) < 10*time.Minute; time.Sleep(5 * time.Second) { pods := podStore.List() + if len(pods) == 0 { + continue waitLoop + } for _, p := range pods { if p.Status.Phase != api.PodRunning { continue waitLoop