Skip to content

Commit 86992b3

Browse files
committed
test: use copyloopvar golint rule
fix golint
1 parent 32d5efc commit 86992b3

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/workflows/static.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: golangci/golangci-lint-action@v6
1717
with:
1818
version: v1.64
19-
args: -E=gofmt,unused,ineffassign,revive,misspell,exportloopref,asciicheck,bodyclose,contextcheck --timeout=30m0s
19+
args: -E=gofmt,unused,ineffassign,revive,misspell,copyloopvar,asciicheck,bodyclose,contextcheck --timeout=30m0s
2020
verify-helm:
2121
name: Verify Helm
2222
runs-on: ubuntu-latest

pkg/nfs/controllerserver_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ func TestCreateVolume(t *testing.T) {
218218
}
219219

220220
for _, test := range cases {
221-
test := test //pin
222221
t.Run(test.name, func(t *testing.T) {
223222
// Setup
224223
cs := initTestController(t)
@@ -300,7 +299,6 @@ func TestDeleteVolume(t *testing.T) {
300299
}
301300

302301
for _, test := range cases {
303-
test := test //pin
304302
if runtime.GOOS == "windows" && !test.testOnWindows {
305303
continue
306304
}
@@ -386,7 +384,6 @@ func TestControllerGetCapabilities(t *testing.T) {
386384
}
387385

388386
for _, test := range cases {
389-
test := test //pin
390387
t.Run(test.desc, func(t *testing.T) {
391388
// Setup
392389
cs := initTestController(t)

0 commit comments

Comments
 (0)