Skip to content

Commit 7e688d8

Browse files
committed
BUILD/MINOR: golangci-lint: upgrade linter and fix lint issues
1 parent de5ad46 commit 7e688d8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.golangci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ linters:
6060
- tagalign
6161
- depguard
6262
- mnd
63-
- gomnd
6463
- err113
65-
- execinquery
66-
- exportloopref
64+
- tenv # deprecated
65+
- recvcheck
6766

6867
issues:
6968
exclude:

haproxy/reload_agent_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
)
2727

2828
func TestReloadAgentDoesntMissReloads(t *testing.T) {
29-
ctx, cancel := context.WithCancel(context.Background())
30-
f, err := os.CreateTemp("", "config.cfg")
29+
ctx, cancel := context.WithCancel(t.Context())
30+
f, err := os.CreateTemp(t.TempDir(), "config.cfg")
3131
require.NoError(t, err)
3232
assert.NotNil(t, f)
3333
t.Cleanup(func() {

0 commit comments

Comments
 (0)