mirror of https://github.com/k3s-io/k3s
Prevent panic on podCreated failure by catching error
parent
a53bf86f40
commit
47c439de06
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in New Issue