mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Prevent panic on podCreated failure by catching error
This commit is contained in:
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
Block a user