From 6448d8567f311f450462bbd2ad04c8644e424b0a Mon Sep 17 00:00:00 2001 From: Predrag Rogic Date: Mon, 19 Apr 2021 23:19:26 +0100 Subject: [PATCH] fix "panic: runtime error: index out of range" error in integration.validateDeployAppToMultiNode --- test/integration/multinode_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/integration/multinode_test.go b/test/integration/multinode_test.go index 60116c209a..397e4fcc47 100644 --- a/test/integration/multinode_test.go +++ b/test/integration/multinode_test.go @@ -419,8 +419,7 @@ func validateDeployAppToMultiNode(ctx context.Context, t *testing.T, profile str podIPs := strings.Split(strings.Trim(rr.Stdout.String(), "'"), " ") if len(podIPs) != 2 { t.Errorf("expected 2 Pod IPs but got %d", len(podIPs)) - } - if podIPs[0] == podIPs[1] { + } else if podIPs[0] == podIPs[1] { t.Errorf("expected 2 different pod IPs but got %s and %s", podIPs[0], podIPs[0]) }