summaryrefslogtreecommitdiff
path: root/integration/plugin
diff options
context:
space:
mode:
authorRoman Volosatovs <roman.volosatovs@docker.com>2021-07-22 22:41:01 +0200
committerRoman Volosatovs <roman.volosatovs@docker.com>2021-07-22 22:46:12 +0200
commitdd01abf9bf73ceab048464b8d5ee1358adfec800 (patch)
tree01c6b461e04a17a482fab352394ef11334346a07 /integration/plugin
parent471fd27709777d2cce3251129887e14e8bb2e0c7 (diff)
downloaddocker-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.go1
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()