tune time

pull/8378/head
Medya Gh 2020-06-04 21:30:49 -07:00
parent 4e74893f44
commit 6542c1fcc3
No known key found for this signature in database
GPG Key ID: 7CF7792C6DF3245C
1 changed files with 2 additions and 2 deletions

View File

@ -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 {