diff --git a/.github/workflows/static.yaml b/.github/workflows/static.yaml index 3820f71b..98150a43 100644 --- a/.github/workflows/static.yaml +++ b/.github/workflows/static.yaml @@ -16,7 +16,7 @@ jobs: uses: golangci/golangci-lint-action@v6 with: version: v1.64 - args: -E=gofmt,unused,ineffassign,revive,misspell,exportloopref,asciicheck,bodyclose,contextcheck --timeout=30m0s + args: -E=gofmt,unused,ineffassign,revive,misspell,copyloopvar,asciicheck,bodyclose,contextcheck --timeout=30m0s verify-helm: name: Verify Helm runs-on: ubuntu-latest diff --git a/pkg/nfs/controllerserver_test.go b/pkg/nfs/controllerserver_test.go index 540292ee..0fd4e046 100644 --- a/pkg/nfs/controllerserver_test.go +++ b/pkg/nfs/controllerserver_test.go @@ -218,7 +218,6 @@ func TestCreateVolume(t *testing.T) { } for _, test := range cases { - test := test //pin t.Run(test.name, func(t *testing.T) { // Setup cs := initTestController(t) @@ -300,7 +299,6 @@ func TestDeleteVolume(t *testing.T) { } for _, test := range cases { - test := test //pin if runtime.GOOS == "windows" && !test.testOnWindows { continue } @@ -386,7 +384,6 @@ func TestControllerGetCapabilities(t *testing.T) { } for _, test := range cases { - test := test //pin t.Run(test.desc, func(t *testing.T) { // Setup cs := initTestController(t) @@ -526,7 +523,6 @@ func TestNfsVolFromId(t *testing.T) { } for _, test := range cases { - test := test //pin t.Run(test.name, func(t *testing.T) { resp, err := getNfsVolFromID(test.volumeID) diff --git a/pkg/nfs/utils_test.go b/pkg/nfs/utils_test.go index 58a457ff..08dde0e9 100644 --- a/pkg/nfs/utils_test.go +++ b/pkg/nfs/utils_test.go @@ -65,7 +65,6 @@ func TestParseEndpoint(t *testing.T) { } for _, test := range cases { - test := test //pin t.Run(test.desc, func(t *testing.T) { proto, addr, err := ParseEndpoint(test.endpoint)