chore: bump golangci-lint to v2.11.4 (#7983)

This commit is contained in:
Ville Vesilehto
2026-03-31 00:39:09 +03:00
committed by GitHub
parent 4091e650fe
commit 2ba4340362
8 changed files with 34 additions and 36 deletions

View File

@@ -55,9 +55,9 @@ func TestDoErr(t *testing.T) {
func TestDoDupSuppress(t *testing.T) {
var g Group
c := make(chan string)
var calls int32
var calls atomic.Int32
fn := func() (any, error) {
atomic.AddInt32(&calls, 1)
calls.Add(1)
return <-c, nil
}
@@ -77,7 +77,7 @@ func TestDoDupSuppress(t *testing.T) {
time.Sleep(100 * time.Millisecond) // let goroutines above block
c <- "bar"
wg.Wait()
if got := atomic.LoadInt32(&calls); got != 1 {
if got := calls.Load(); got != 1 {
t.Errorf("Number of calls = %d; want 1", got)
}
}