From 8b06ef144e2e172fcd2726c11ac08a28de83a1d8 Mon Sep 17 00:00:00 2001 From: deads2k Date: Mon, 7 Mar 2016 09:30:08 -0500 Subject: [PATCH] deflake rc logs test --- test/e2e/kubectl.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/e2e/kubectl.go b/test/e2e/kubectl.go index e5bedde52e6..8553a52186c 100644 --- a/test/e2e/kubectl.go +++ b/test/e2e/kubectl.go @@ -900,6 +900,13 @@ var _ = Describe("Kubectl client", func() { } By("confirm that you can get logs from an rc") + podNames := []string{} + for _, pod := range pods { + podNames = append(podNames, pod.Name) + } + if !checkPodsRunningReady(c, ns, podNames, podStartTimeout) { + Failf("Pods for rc %s were not ready", rcName) + } _, err = runKubectl("logs", "rc/"+rcName, nsFlag) // a non-nil error is fine as long as we actually found a pod. if err != nil && !strings.Contains(err.Error(), " in pod ") {