diff options
author | Roman Volosatovs <roman.volosatovs@docker.com> | 2021-07-22 22:41:01 +0200 |
---|---|---|
committer | Roman Volosatovs <roman.volosatovs@docker.com> | 2021-07-22 22:46:12 +0200 |
commit | dd01abf9bf73ceab048464b8d5ee1358adfec800 (patch) | |
tree | 01c6b461e04a17a482fab352394ef11334346a07 /integration/plugin | |
parent | 471fd27709777d2cce3251129887e14e8bb2e0c7 (diff) | |
download | docker-dd01abf9bf73ceab048464b8d5ee1358adfec800.tar.gz |
integration: copy loop variable into parallel test closures
Discovered a few instances, where loop variable is incorrectly used
within a test closure, which is marked as parallel.
Few of these were actually loops over singleton slices, therefore the issue
might not have surfaced there (yet), but it is good to fix there as
well, as this is an incorrect pattern used across different tests.
Signed-off-by: Roman Volosatovs <roman.volosatovs@docker.com>
Diffstat (limited to 'integration/plugin')
-rw-r--r-- | integration/plugin/common/plugin_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/integration/plugin/common/plugin_test.go b/integration/plugin/common/plugin_test.go index a5568cca91..83e060f82e 100644 --- a/integration/plugin/common/plugin_test.go +++ b/integration/plugin/common/plugin_test.go @@ -36,6 +36,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() |