Increase waiting time for integration tests

There have been flakes on the integration tests where the dashboard pod has been getting ready but the test does not wait long enough and fails.
pull/803/head
Matt Rickard 2016-11-03 12:23:38 -07:00
parent 061d2d0a8d
commit ec0acbb6ca
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ func TestAddons(t *testing.T) {
return &commonutil.RetriableError{Err: fmt.Errorf("Addon manager not found. Found pods: %v", pods)} return &commonutil.RetriableError{Err: fmt.Errorf("Addon manager not found. Found pods: %v", pods)}
} }
if err := commonutil.RetryAfter(20, checkAddon, 5*time.Second); err != nil { if err := commonutil.RetryAfter(25, checkAddon, 20*time.Second); err != nil {
t.Fatalf("Addon Manager pod is unhealthy: %s", err) t.Fatalf("Addon Manager pod is unhealthy: %s", err)
} }
} }

View File

@ -76,7 +76,7 @@ func TestPersistence(t *testing.T) {
// Make sure the dashboard is running before we stop the VM. // Make sure the dashboard is running before we stop the VM.
// On slow networks it can take several minutes to pull the addon-manager then the dashboard image. // On slow networks it can take several minutes to pull the addon-manager then the dashboard image.
if err := commonutil.RetryAfter(30, checkDashboard, 6*time.Second); err != nil { if err := commonutil.RetryAfter(25, checkDashboard, 20*time.Second); err != nil {
t.Fatalf("Dashboard pod is not healthy: %s", err) t.Fatalf("Dashboard pod is not healthy: %s", err)
} }