Skip to content

Commit 5a507ba

Browse files
committed
Update GatewayAPI test to check if deployment has 1 or more pod
1 parent 5bfbb60 commit 5a507ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/e2e/util_gatewayapi_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,8 @@ func assertIstiodControlPlane(t *testing.T) error {
555555
if err != nil {
556556
return fmt.Errorf("error finding pod for deployment %v: %v", ns, err)
557557
}
558-
if len(podlist.Items) > 1 {
559-
return fmt.Errorf("too many pods for deployment %v: %d", ns, len(podlist.Items))
558+
if len(podlist.Items) < 1 {
559+
return fmt.Errorf("Insufficient amount of pods in deployment %v: %d", ns, len(podlist.Items))
560560
}
561561
pod := podlist.Items[0]
562562
if pod.Status.Phase != corev1.PodRunning {

0 commit comments

Comments
 (0)