From f1aa0012f0133c6fdb00b44e63063bcbca9e8199 Mon Sep 17 00:00:00 2001 From: MoofMonkey <11695747+MoofMonkey@users.noreply.github.com> Date: Wed, 12 Oct 2022 15:16:59 +0300 Subject: [PATCH] Replace runtime.NumGoroutine with runtime.GOMAXPROCS --- h2mux/h2mux_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h2mux/h2mux_test.go b/h2mux/h2mux_test.go index 6b76afb3..d59535da 100644 --- a/h2mux/h2mux_test.go +++ b/h2mux/h2mux_test.go @@ -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))]