Skip to content

Commit abfd29c

Browse files
committed
Ensure that only running pods will be checked
1 parent 076b509 commit abfd29c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

e2e/test_operator/operator_test.go

+5
Original file line numberDiff line numberDiff line change
@@ -2768,6 +2768,11 @@ var _ = Describe("Operator", Label("e2e", "pr"), func() {
27682768
continue
27692769
}
27702770

2771+
if pod.Status.Phase != corev1.PodRunning {
2772+
log.Println("ignoring pod:", pod.Name, "with pod phase", pod.Status.Phase, "message:", pod.Status.Message)
2773+
continue
2774+
}
2775+
27712776
Expect(pod.CreationTimestamp.After(testStartTime)).To(BeTrue())
27722777
Expect(pod.Annotations).To(HaveKeyWithValue(fdbv1beta2.IPFamilyAnnotation, podIPFamilyString))
27732778
}

0 commit comments

Comments
 (0)