Skip to content

Commit f8d499c

Browse files
committed
fix 'race: limit on 8128 simultaneously alive goroutines is exceeded, dying'
1 parent b396c6b commit f8d499c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/pool/pool_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ func TestSafeStatsRace(t *testing.T) {
297297
wg sync.WaitGroup
298298
s = &safeStats{}
299299
)
300-
wg.Add(10000)
301-
for range make([]struct{}, 10000) {
300+
wg.Add(1000)
301+
for range make([]struct{}, 1000) {
302302
go func() {
303303
defer wg.Done()
304304
require.NotPanics(t, func() {

0 commit comments

Comments
 (0)