From 896f96dfc4b66b4abd8cd7cafac0df22ab753da5 Mon Sep 17 00:00:00 2001 From: tstromberg Date: Tue, 17 Dec 2019 15:34:47 -0800 Subject: [PATCH] Pass the env in properly --- test/integration/offline_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/integration/offline_test.go b/test/integration/offline_test.go index 60c7a3e01d..9af847b531 100644 --- a/test/integration/offline_test.go +++ b/test/integration/offline_test.go @@ -44,11 +44,13 @@ func TestOffline(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 15*time.Minute) defer CleanupWithLogs(t, profile, cancel) - startArgs := append([]string{"start", "-p", profile, "--alsologtostderr", "-v=1", "--wait=true", "--container-runtime", runtime}) + startArgs := []string{"start", "-p", profile, "--alsologtostderr", "-v=1", "--wait=true", "--container-runtime", runtime} + startArgs = append(startArgs, StartArgs()...) c := exec.CommandContext(ctx, Target(), startArgs...) env := os.Environ() env = append(env, "HTTP_PROXYS=172.1.1.1") env = append(env, "DOCKER_HOST=172.1.1.1") + c.Env = env rr, err := Run(t, c) if err != nil { // Fatal so that we may collect logs before stop/delete steps