Remove race of ClusterDns e2e frontend test and starting pod

pull/6/head
Dr. Stefan Schimanski 2015-10-17 12:16:54 +02:00
parent d4602bb909
commit d11a3930c0
1 changed files with 7 additions and 1 deletions

View File

@ -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 {