From d11a3930c0118106547a253ce17a41cc791558bd Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Sat, 17 Oct 2015 12:16:54 +0200 Subject: [PATCH] Remove race of ClusterDns e2e frontend test and starting pod --- test/e2e/examples.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/e2e/examples.go b/test/e2e/examples.go index 6a0e17c24d..14b89d006a 100644 --- a/test/e2e/examples.go +++ b/test/e2e/examples.go @@ -535,7 +535,13 @@ var _ = Describe("Examples e2e", func() { for _, ns := range namespaces { newKubectlCommand("create", "-f", "-", getNsCmdFlag(ns)).withStdinData(updatedPodYaml).exec() } - // remember that we cannot wait for the pods to be running because our pods terminate by themselves. + + // wait until the pods have been scheduler, i.e. are not Pending anymore. Remember + // that we cannot wait for the pods to be running because our pods terminate by themselves. + for _, ns := range namespaces { + err := waitForPodNotPending(c, ns.Name, frontendPodName) + expectNoError(err) + } // wait for pods to print their result for _, ns := range namespaces {