diff --git a/integration/container/container_test.go b/integration/container/container_test.go index 86e02d9faa..60c0e12443 100644 --- a/integration/container/container_test.go +++ b/integration/container/container_test.go @@ -19,6 +19,7 @@ func TestContainerInvalidJSON(t *testing.T) { } for _, ep := range endpoints { + ep := ep t.Run(ep, func(t *testing.T) { t.Parallel() diff --git a/integration/network/network_test.go b/integration/network/network_test.go index a4057d2410..66fdcfe26a 100644 --- a/integration/network/network_test.go +++ b/integration/network/network_test.go @@ -72,6 +72,7 @@ func TestNetworkInvalidJSON(t *testing.T) { } for _, ep := range endpoints { + ep := ep t.Run(ep, func(t *testing.T) { t.Parallel() @@ -105,6 +106,7 @@ func TestNetworkList(t *testing.T) { } for _, ep := range endpoints { + ep := ep t.Run(ep, func(t *testing.T) { t.Parallel() diff --git a/integration/plugin/common/plugin_test.go b/integration/plugin/common/plugin_test.go index 2ba7fb0502..fb37a5e174 100644 --- a/integration/plugin/common/plugin_test.go +++ b/integration/plugin/common/plugin_test.go @@ -35,6 +35,7 @@ func TestPluginInvalidJSON(t *testing.T) { endpoints := []string{"/plugins/foobar/set"} for _, ep := range endpoints { + ep := ep t.Run(ep, func(t *testing.T) { t.Parallel() diff --git a/integration/volume/volume_test.go b/integration/volume/volume_test.go index 65f457d6d8..f465e47b05 100644 --- a/integration/volume/volume_test.go +++ b/integration/volume/volume_test.go @@ -110,6 +110,7 @@ func TestVolumesInvalidJSON(t *testing.T) { endpoints := []string{"/volumes/create"} for _, ep := range endpoints { + ep := ep t.Run(ep, func(t *testing.T) { t.Parallel()