Increase timeouts/offsets for more reliable integration testing

pull/6119/head
tstromberg 2019-12-18 14:53:46 -08:00
parent 7fe54f1cc1
commit 0ae29db951
2 changed files with 5 additions and 2 deletions

View File

@ -33,7 +33,9 @@ var defaultDriver = flag.String("expected-default-driver", "", "Expected default
var forceProfile = flag.String("profile", "", "force tests to run against a particular profile")
var cleanup = flag.Bool("cleanup", true, "cleanup failed test run")
var enableGvisor = flag.Bool("gvisor", false, "run gvisor integration test (slow)")
var startOffset = flag.Duration("start-offset", 30*time.Second, "how much time to offset between cluster starts")
// Ensure that multiple calls to startMachine do not collide with one another
var startOffset = flag.Duration("start-offset", 45*time.Second, "how much time to offset between cluster starts")
var postMortemLogs = flag.Bool("postmortem-logs", true, "show logs after a failed test run")
// Paths to files - normally set for CI

View File

@ -107,7 +107,8 @@ func TestStartStop(t *testing.T) {
t.Fatalf("%s failed: %v", rr.Args, err)
}
names, err := PodWait(ctx, t, profile, "default", "integration-test=busybox", 4*time.Minute)
// 8 minutes, because 4 is not enough for images to pull in all cases.
names, err := PodWait(ctx, t, profile, "default", "integration-test=busybox", 8*time.Minute)
if err != nil {
t.Fatalf("wait: %v", err)
}