runtime: don't run TestStackGrowth in parallel with other tests

This test calls runtime.GC quite a number of times. GC is a global
operation. To reduce interference with other tests, don't run this
test in parallel with other tests.

May fix #57601.

Change-Id: I6efadb62c4dada37a927455f5c6cd98cafb88aaf
Reviewed-on: https://go-review.googlesource.com/c/go/+/492715
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
Cherry Mui 2023-05-04 15:11:28 -04:00
parent ae59562c71
commit 0212b80eac
1 changed files with 0 additions and 2 deletions

View File

@ -81,8 +81,6 @@ func TestStackGrowth(t *testing.T) {
t.Skip("-quick")
}
t.Parallel()
var wg sync.WaitGroup
// in a normal goroutine