From 656b96b9190cf72dff16a16eb6b9be470dbcf300 Mon Sep 17 00:00:00 2001 From: Weizhen Wang Date: Thu, 12 Oct 2023 17:53:09 +0800 Subject: [PATCH] *: set MAX GOMAXPROCS in test as 16 (#47579) --- testkit/testenv/testenv.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testkit/testenv/testenv.go b/testkit/testenv/testenv.go index cf86c4ff4759e..c994a13a54a34 100644 --- a/testkit/testenv/testenv.go +++ b/testkit/testenv/testenv.go @@ -20,7 +20,7 @@ import ( "github.com/pingcap/tidb/util/mathutil" ) -// SetGOMAXPROCSForTest sets GOMAXPROCS to 8 if it is greater than 8. +// SetGOMAXPROCSForTest sets GOMAXPROCS to 16 if it is greater than 16. func SetGOMAXPROCSForTest() { - runtime.GOMAXPROCS(mathutil.Min(8, runtime.GOMAXPROCS(0))) + runtime.GOMAXPROCS(mathutil.Min(16, runtime.GOMAXPROCS(0))) }