]> Cypherpunks repositories - gostls13.git/commitdiff
testing: clarify T.Parallel() godoc wording
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 3 Feb 2017 10:18:04 +0000 (10:18 +0000)
committerIan Lance Taylor <iant@golang.org>
Tue, 7 Feb 2017 15:30:49 +0000 (15:30 +0000)
Fixes #18914.

Change-Id: Iec90d6aaa62595983db28b17794429f3c9a3dc36
Reviewed-on: https://go-review.googlesource.com/36272
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/testing/testing.go

index 97c703d8ba0e1bc8fca60ffba8c43b8e0b46b9bc..d63d5d85a754fbc953029805f949cbbcaf2ac0b8 100644 (file)
@@ -569,7 +569,9 @@ func (c *common) Skipped() bool {
 }
 
 // Parallel signals that this test is to be run in parallel with (and only with)
-// other parallel tests.
+// other parallel tests. When a test is run multiple times due to use of
+// -test.count or -test.cpu, multiple instances of a single test never run in
+// parallel with each other.
 func (t *T) Parallel() {
        if t.isParallel {
                panic("testing: t.Parallel called multiple times")