Skip to content

Commit

Permalink
*: set MAX GOMAXPROCS in test as 16 (#47579)
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei authored Oct 12, 2023
1 parent f1670ba commit 656b96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testkit/testenv/testenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}

0 comments on commit 656b96b

Please sign in to comment.