Skip to content

Commit

Permalink
Relax linter for tests
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Chacin <[email protected]>
  • Loading branch information
pablochacin committed Jun 20, 2024
1 parent 286cb03 commit 6d8e85a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ issues:
- gocognit
- funlen
- lll
- gosec
- noctx
- path: js\/modules\/k6\/http\/.*_test\.go
linters:
# k6/http module's tests are quite complex because they often have several nested levels.
Expand Down
2 changes: 1 addition & 1 deletion apiserver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func TestAPIServer(t *testing.T) {
t.Fatalf("test setup %v", err)
}

resp, err := http.Post(apiserver.URL, "application/json", &req) //nolint:noctx
resp, err := http.Post(apiserver.URL, "application/json", &req)
if err != nil {
t.Fatalf("making request %v", err)
}
Expand Down

0 comments on commit 6d8e85a

Please sign in to comment.