Merge pull request #22641 from deads2k/deflake-rc-logs

deflake rc logs test
This commit is contained in:
Brian Grant 2016-03-07 09:11:08 -08:00
commit 9ac8627083

View File

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