tune time
parent
4e74893f44
commit
6542c1fcc3
|
@ -149,10 +149,10 @@ func validateServiceStable(ctx context.Context, t *testing.T, profile string) {
|
|||
}
|
||||
|
||||
// Wait until the nginx-svc has a loadbalancer ingress IP
|
||||
err = wait.PollImmediate(5*time.Second, Minutes(3), func() (bool, error) {
|
||||
err = wait.PollImmediate(1*time.Second, Minutes(4), func() (bool, error) {
|
||||
cmd := exec.CommandContext(ctx, "kubectl", "--context", profile, "get", "svc", "nginx-svc", "-o", "jsonpath={.status.loadBalancer.ingress[0].ip}")
|
||||
if runtime.GOOS == "windows" {
|
||||
cmd = exec.CommandContext(ctx, "powershell.exe", "-NoProfile", "-NonInteractive", "kubectl --context "+profile+" get svc nginx-svc -o jsonpath='{.status.loadBalancer.ingress[0].ip}'")
|
||||
cmd = exec.CommandContext(ctx, "powershell.exe", "-NoProfile", "-NonInteractive", "kubectl --context "+profile+" get svc nginx-svc -o jsonpath={.status.loadBalancer.ingress[0].ip}")
|
||||
}
|
||||
rr, err := Run(t, cmd)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue