Prevent panic on podCreated failure by catching error

pull/6/head
jay vyas 2016-02-26 20:45:50 -05:00
parent a53bf86f40
commit 47c439de06
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ func ReplicaSetServeImageOrFail(f *Framework, test string, image string) {
label := labels.SelectorFromSet(labels.Set(map[string]string{"name": name}))
pods, err := podsCreated(f.Client, f.Namespace.Name, name, replicas)
Expect(err).NotTo(HaveOccurred())
By("Ensuring each pod is running")