diff --git a/e2e/cli-plugins/flags_test.go b/e2e/cli-plugins/flags_test.go index c4e5fbcbc4..7631bab0de 100644 --- a/e2e/cli-plugins/flags_test.go +++ b/e2e/cli-plugins/flags_test.go @@ -131,7 +131,6 @@ func TestUnknownGlobal(t *testing.T) { "separate-val": {"--unknown", "foo", "helloworld"}, "joined-val": {"--unknown=foo", "helloworld"}, } { - args := args t.Run(name, func(t *testing.T) { res := icmd.RunCmd(run(args...)) res.Assert(t, icmd.Expected{ diff --git a/e2e/container/run_test.go b/e2e/container/run_test.go index d4fea81769..c835f1caf2 100644 --- a/e2e/container/run_test.go +++ b/e2e/container/run_test.go @@ -214,7 +214,6 @@ func TestMountSubvolume(t *testing.T) { {name: "subdirectory mount", cmd: "ls", subpath: "subdir", expectedOut: "hello.txt"}, {name: "file mount", cmd: "cat", subpath: "bar.txt", expectedOut: "foo"}, } { - tc := tc t.Run(tc.name, func(t *testing.T) { runMount(tc.cmd, "volume-subpath="+tc.subpath).Assert(t, icmd.Expected{ Err: tc.expectedErr, diff --git a/e2e/global/cli_test.go b/e2e/global/cli_test.go index 21b964d40b..86e67555a2 100644 --- a/e2e/global/cli_test.go +++ b/e2e/global/cli_test.go @@ -182,7 +182,6 @@ func TestPromptExitCode(t *testing.T) { } for _, tc := range testCases { - tc := tc t.Run("case="+tc.name, func(t *testing.T) { t.Parallel()