mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
integration/daemon: remove redundant capturing of loop vars (copyloopvar)
integration/daemon/daemon_test.go:115:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
tc := tc
^
integration/daemon/daemon_test.go:161:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
tc := tc
^
integration/daemon/daemon_test.go:234:3: The copy of the 'for' variable "tc" can be deleted (Go 1.22+) (copyloopvar)
tc := tc
^
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -112,7 +112,6 @@ func TestDaemonConfigValidation(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, tc := range tests {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
_ = testutil.StartSpan(ctx, t)
|
||||
@@ -158,7 +157,6 @@ func TestConfigDaemonSeccompProfiles(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tc := range tests {
|
||||
tc := tc
|
||||
t.Run(tc.doc, func(t *testing.T) {
|
||||
_ = testutil.StartSpan(ctx, t)
|
||||
|
||||
@@ -231,7 +229,6 @@ func TestDaemonConfigFeatures(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, tc := range tests {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
_ = testutil.StartSpan(ctx, t)
|
||||
|
||||
Reference in New Issue
Block a user