pull/5784/head
Thomas Stromberg 2019-10-29 21:50:50 -07:00
parent 970fc60403
commit 279915a38d
1 changed files with 2 additions and 3 deletions

View File

@ -85,7 +85,7 @@ func TestStartStop(t *testing.T) {
ctx, cancel := context.WithTimeout(context.Background(), 40*time.Minute)
defer CleanupWithLogs(t, profile, cancel)
startArgs := append([]string{"start", "-p", profile, "--alsologtostderr", "-v=3"}, tc.args...)
startArgs := append([]string{"start", "-p", profile, "--alsologtostderr", "-v=3", "--wait"}, tc.args...)
startArgs = append(startArgs, StartArgs()...)
rr, err := Run(t, exec.CommandContext(ctx, Target(), startArgs...))
if err != nil {
@ -103,8 +103,7 @@ func TestStartStop(t *testing.T) {
t.Fatalf("%s failed: %v", rr.Args, err)
}
names, err := PodWait(ctx, t, profile, "default", "integration-test=busybox", 2*time.Minute)
if err != nil {
if _, err := PodWait(ctx, t, profile, "default", "integration-test=busybox", 4*time.Minute); err != nil {
t.Fatalf("wait: %v", err)
}