Merge pull request #11152 from prezha/fix-test-index-out-of-range

fix "index out of range" in integration.validateDeployAppToMultiNode
pull/11080/head
Medya Ghazizadeh 2021-04-19 15:24:42 -07:00 committed by GitHub
commit a47e1ca488
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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])
}