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
parent
061d2d0a8d
commit
ec0acbb6ca
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue