Commit daf6be1a authored by Piotr Szczesniak's avatar Piotr Szczesniak

Merge pull request #24706 from jayunit100/redis-wait

Slow down redis polling to ensure no flakiness in kubectl
parents c0020aff fcf25459
...@@ -727,8 +727,12 @@ var _ = framework.KubeDescribe("Kubectl client", func() { ...@@ -727,8 +727,12 @@ var _ = framework.KubeDescribe("Kubectl client", func() {
framework.Logf("namespace %v", ns) framework.Logf("namespace %v", ns)
framework.RunKubectlOrDie("create", "-f", controllerJson, nsFlag) 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) { 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) 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) { validateService := func(name string, servicePort int, timeout time.Duration) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment