aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorMarcel van Lohuizen <mpvl@golang.org>2016-03-18 19:11:19 +0100
committerMarcel van Lohuizen <mpvl@golang.org>2016-03-21 16:52:04 +0000
commit5fb6aa3e096bc61f5a602109ebdb8e3edb0f66ca (patch)
tree69dfd332cee34fae98e2b230324b0dbfe9c53492 /src/testing/testing.go
parentbea2008b83424b9693c0e38940ffd53a5e1e80a3 (diff)
downloadgo-5fb6aa3e096bc61f5a602109ebdb8e3edb0f66ca.tar.xz
testing: add test for not exceeding maximum parallism
Fixed bug that slipped probably slipped in after rebasing and explain why it failed on nacl/netbsd/plan9, which set default maxparallelism to 1. Change-Id: I4d59682fb2843d138b320334189f53fcdda5b2f6 Reviewed-on: https://go-review.googlesource.com/20980 Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/testing/testing.go')
-rw-r--r--src/testing/testing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index 0aa60d9ddc..03a7fbfddd 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -602,7 +602,7 @@ type testContext struct {
func newTestContext(maxParallel int) *testContext {
return &testContext{
startParallel: make(chan bool),
- maxParallel: *parallel,
+ maxParallel: maxParallel,
running: 1, // Set the count to 1 for the main (sequential) test.
}
}