diff --git a/cli/command/stack/kubernetes/convert_test.go b/cli/command/stack/kubernetes/convert_test.go index 1cdf4f276b..05d1748e55 100644 --- a/cli/command/stack/kubernetes/convert_test.go +++ b/cli/command/stack/kubernetes/convert_test.go @@ -195,6 +195,7 @@ func TestHandlePullSecret(t *testing.T) { } for _, c := range cases { + c := c t.Run(c.version, func(t *testing.T) { conv, err := NewStackConverter(c.version) assert.NilError(t, err) @@ -222,6 +223,7 @@ func TestHandlePullPolicy(t *testing.T) { } for _, c := range cases { + c := c t.Run(c.version, func(t *testing.T) { conv, err := NewStackConverter(c.version) assert.NilError(t, err) @@ -271,6 +273,7 @@ func TestHandleInternalServiceType(t *testing.T) { }, } for _, c := range cases { + c := c t.Run(c.name, func(t *testing.T) { res, err := fromComposeServiceConfig(composetypes.ServiceConfig{ Name: "test",