diff --git a/test/integration/functional_test.go b/test/integration/functional_test.go index d0247596c907..52d188190aee 100644 --- a/test/integration/functional_test.go +++ b/test/integration/functional_test.go @@ -328,7 +328,7 @@ func validateMinikubeKubectlDirectCall(ctx context.Context, t *testing.T, profil } defer os.Remove(dstfn) // clean up - kubectlArgs := []string{"get", "pods", "--context", profile} + kubectlArgs := []string{"get", "pods"} rr, err := Run(t, exec.CommandContext(ctx, dstfn, kubectlArgs...)) if err != nil { t.Fatalf("failed to run kubectl directl. args %q: %v", rr.Command(), err)