chore: bump minimum Go version to 1.25 (#7788)

This commit is contained in:
Ville Vesilehto
2026-02-16 15:28:30 +02:00
committed by GitHub
parent b1080a2934
commit 6fd38dca06
9 changed files with 26 additions and 50 deletions

View File

@@ -64,8 +64,7 @@ func TestDoDupSuppress(t *testing.T) {
const n = 10
var wg sync.WaitGroup
for range n {
wg.Add(1)
go func() {
wg.Go(func() {
v, err := g.Do(1, fn)
if err != nil {
t.Errorf("Do error: %v", err)
@@ -73,8 +72,7 @@ func TestDoDupSuppress(t *testing.T) {
if v.(string) != "bar" {
t.Errorf("Got %q; want %q", v, "bar")
}
wg.Done()
}()
})
}
time.Sleep(100 * time.Millisecond) // let goroutines above block
c <- "bar"