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

@@ -124,30 +124,26 @@ func TestConcurrentAccess(t *testing.T) {
// Test concurrent Int() calls
for range numGoroutines {
wg.Add(1)
go func() {
defer wg.Done()
wg.Go(func() {
for range numOperations {
val := r.Int()
if val < 0 {
errors <- nil
}
}
}()
})
}
// Test concurrent Perm() calls
for range numGoroutines {
wg.Add(1)
go func() {
defer wg.Done()
wg.Go(func() {
for range numOperations {
perm := r.Perm(5)
if len(perm) != 5 {
errors <- nil
}
}
}()
})
}
wg.Wait()