Commit 8b06ef14 authored by deads2k's avatar deads2k

deflake rc logs test

parent 8d80af4a
...@@ -900,6 +900,13 @@ var _ = Describe("Kubectl client", func() { ...@@ -900,6 +900,13 @@ var _ = Describe("Kubectl client", func() {
} }
By("confirm that you can get logs from an rc") 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) _, err = runKubectl("logs", "rc/"+rcName, nsFlag)
// a non-nil error is fine as long as we actually found a pod. // a non-nil error is fine as long as we actually found a pod.
if err != nil && !strings.Contains(err.Error(), " in pod ") { if err != nil && !strings.Contains(err.Error(), " in pod ") {
......
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