mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
all: sprinkle t.Parallel on some slow tests
I used the slowtests.go tool as described in https://golang.org/cl/32684 on packages that stood out. go test -short std drops from ~56 to ~52 seconds. This isn't a huge win, but it was mostly an exercise. Updates #17751 Change-Id: I9f3402e36a038d71e662d06ce2c1d52f6c4b674d Reviewed-on: https://go-review.googlesource.com/32751 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
3f69909851
commit
2341631506
18 changed files with 103 additions and 22 deletions
|
|
@ -37,6 +37,8 @@ func TestCrashDumpsAllThreads(t *testing.T) {
|
|||
|
||||
checkStaleRuntime(t)
|
||||
|
||||
t.Parallel()
|
||||
|
||||
dir, err := ioutil.TempDir("", "go-build")
|
||||
if err != nil {
|
||||
t.Fatalf("failed to create temp directory: %v", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue