fix "panic: runtime error: index out of range" error in integration.validateDeployAppToMultiNode
parent
d4c1c2a79f
commit
6448d8567f
|
|
@ -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])
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue