Skip to content

Commit

Permalink
BUILD/MINOR: golangci-lint: upgrade linter and fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mjuraga committed Feb 25, 2025
1 parent de5ad46 commit 7e688d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ linters:
- tagalign
- depguard
- mnd
- gomnd
- err113
- execinquery
- exportloopref
- tenv # deprecated
- recvcheck

issues:
exclude:
Expand Down
4 changes: 2 additions & 2 deletions haproxy/reload_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import (
)

func TestReloadAgentDoesntMissReloads(t *testing.T) {
ctx, cancel := context.WithCancel(context.Background())
f, err := os.CreateTemp("", "config.cfg")
ctx, cancel := context.WithCancel(t.Context())
f, err := os.CreateTemp(t.TempDir(), "config.cfg")
require.NoError(t, err)
assert.NotNil(t, f)
t.Cleanup(func() {
Expand Down

0 comments on commit 7e688d8

Please sign in to comment.