Replace runtime.NumGoroutine with runtime.GOMAXPROCS
This commit is contained in:
parent
578888e3f3
commit
f1aa0012f0
|
@ -977,7 +977,7 @@ func TestLongSiteWithDictionaries(t *testing.T) {
|
||||||
|
|
||||||
tstLen := 500
|
tstLen := 500
|
||||||
errGroup, _ := errgroup.WithContext(context.Background())
|
errGroup, _ := errgroup.WithContext(context.Background())
|
||||||
errGroup.SetLimit(runtime.NumGoroutine())
|
errGroup.SetLimit(runtime.GOMAXPROCS(0))
|
||||||
for i := 0; i < tstLen; i++ {
|
for i := 0; i < tstLen; i++ {
|
||||||
errGroup.Go(func() error {
|
errGroup.Go(func() error {
|
||||||
path := paths[rand.Intn(len(paths))]
|
path := paths[rand.Intn(len(paths))]
|
||||||
|
|
Loading…
Reference in New Issue