test: use copyloopvar golint rule
fix golint fix
This commit is contained in:
parent
32d5efcf7e
commit
4213be64bc
2
.github/workflows/static.yaml
vendored
2
.github/workflows/static.yaml
vendored
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user