]> Cypherpunks.ru repositories - gostls13.git/commit
misc/cgo/test: use fewer threads in TestSetgidStress in long mode
authorCherry Mui <cherryyz@google.com>
Wed, 27 Jul 2022 16:59:16 +0000 (12:59 -0400)
committerCherry Mui <cherryyz@google.com>
Wed, 27 Jul 2022 20:21:13 +0000 (20:21 +0000)
commit462b78fe7027ef0d2e2b40c3cfd1f5a37d307310
tree8d298700f4583e6d8f6001666aa91c5cd28af1cd
parent055113ef364337607e3e72ed7d48df67fde6fc66
misc/cgo/test: use fewer threads in TestSetgidStress in long mode

TestSetgidStress originally spawns 1000 threads for stress testing.
It caused timeout on some builders so CL 415677 reduced to 50 in
short mode. But it still causes flaky timeouts in longtest
builders, so reduce the number of threads in long mode as well.

Should fix #53641.

Change-Id: I02f4ef8a143bb1faafe3d11ad223f36f5cc245c6
Reviewed-on: https://go-review.googlesource.com/c/go/+/419453
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
misc/cgo/test/setgid2_linux.go