Add a timeout to waitForPodRunning
* Add a timeout, convert the function to return an error (which gives a reasonable status message for callers). * Start converting glog to By.
This commit is contained in:
@@ -116,7 +116,8 @@ var _ = Describe("Services", func() {
|
||||
}()
|
||||
|
||||
By("waiting for the pod to start running")
|
||||
waitForPodRunning(c, pod.Name)
|
||||
err = waitForPodRunning(c, pod.Name, 300*time.Second)
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
|
||||
By("retrieving the pod")
|
||||
pod, err = podClient.Get(pod.Name)
|
||||
|
Reference in New Issue
Block a user