Slow down redis pod polling, ensure no flakiness in kubectl service

test.
pull/6/head
Jay Vyas 2016-04-23 00:43:59 -04:00
parent a0e4a80eb4
commit fcf254591f
1 changed files with 5 additions and 1 deletions

View File

@ -727,8 +727,12 @@ var _ = framework.KubeDescribe("Kubectl client", func() {
framework.Logf("namespace %v", ns)
framework.RunKubectlOrDie("create", "-f", controllerJson, nsFlag)
// It may take a while for the pods to get registered in some cases, wait to be sure.
By("Waiting for Redis master to start.")
waitFor(1)
forEachPod(func(pod api.Pod) {
framework.Logf("wait on %v ", ns)
framework.Logf("wait on redis-master startup in %v ", ns)
framework.LookForStringInLog(ns, pod.Name, "redis-master", "The server is now ready to accept connections", framework.PodStartTimeout)
})
validateService := func(name string, servicePort int, timeout time.Duration) {