mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +00:00
Prevent panic on podCreated failure by catching error
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user