Replace runtime.NumGoroutine with runtime.GOMAXPROCS

This commit is contained in:
MoofMonkey 2022-10-12 15:16:59 +03:00
parent 578888e3f3
commit f1aa0012f0
1 changed files with 1 additions and 1 deletions

View File

@ -977,7 +977,7 @@ func TestLongSiteWithDictionaries(t *testing.T) {
tstLen := 500
errGroup, _ := errgroup.WithContext(context.Background())
errGroup.SetLimit(runtime.NumGoroutine())
errGroup.SetLimit(runtime.GOMAXPROCS(0))
for i := 0; i < tstLen; i++ {
errGroup.Go(func() error {
path := paths[rand.Intn(len(paths))]