diff --git a/pkg/api/api_test.go b/pkg/api/api_test.go index b06e5808479..46473a3a253 100644 --- a/pkg/api/api_test.go +++ b/pkg/api/api_test.go @@ -397,7 +397,6 @@ func TestParseName(t *testing.T) { s.Configure(signer, nil, nil, api.Options{}, api.ExtraOptions{Resolver: tC.res}, 1, nil) s.MountAPI() - tC := tC t.Run(tC.desc, func(t *testing.T) { t.Parallel() @@ -553,7 +552,7 @@ func TestOptions(t *testing.T) { expectedMethods: "GET, HEAD", }, } { - tc := tc + t.Run(tc.endpoint+" options test", func(t *testing.T) { t.Parallel()