diff --git a/cli/config/config_test.go b/cli/config/config_test.go index 9e8c89238e..0d0edfa1e1 100644 --- a/cli/config/config_test.go +++ b/cli/config/config_test.go @@ -433,7 +433,6 @@ func TestConfigPath(t *testing.T) { expectedErr: fmt.Sprintf("is outside of root config directory %q", "dummy"), }, } { - tc := tc t.Run(tc.name, func(t *testing.T) { SetDir(tc.dir) f, err := Path(tc.path...) diff --git a/cli/config/credentials/file_store_test.go b/cli/config/credentials/file_store_test.go index 466fa054a0..5cf7d585a5 100644 --- a/cli/config/credentials/file_store_test.go +++ b/cli/config/credentials/file_store_test.go @@ -297,7 +297,6 @@ func TestConvertToHostname(t *testing.T) { }, } for _, tc := range tests { - tc := tc t.Run(tc.input, func(t *testing.T) { actual := ConvertToHostname(tc.input) assert.Equal(t, actual, tc.expected)