diff --git a/cli/command/context/create_test.go b/cli/command/context/create_test.go index 013e82d05e..99af79e5e3 100644 --- a/cli/command/context/create_test.go +++ b/cli/command/context/create_test.go @@ -263,6 +263,7 @@ func TestCreateFromContext(t *testing.T) { cli.SetCurrentContext("dummy") for _, c := range cases { + c := c t.Run(c.name, func(t *testing.T) { cli.ResetOutputBuffers() err := RunCreate(cli, &CreateOptions{ @@ -339,6 +340,7 @@ func TestCreateFromCurrent(t *testing.T) { cli.SetCurrentContext("original") for _, c := range cases { + c := c t.Run(c.name, func(t *testing.T) { cli.ResetOutputBuffers() err := RunCreate(cli, &CreateOptions{