Skip to content

Commit

Permalink
testing: clarify T.Parallel() godoc wording
Browse files Browse the repository at this point in the history
Fixes #18914.

Change-Id: Iec90d6aaa62595983db28b17794429f3c9a3dc36
Reviewed-on: https://go-review.googlesource.com/36272
Reviewed-by: Ian Lance Taylor <iant@golang.org>
  • Loading branch information
mvdan authored and ianlancetaylor committed Feb 7, 2017
1 parent 14347ee commit 3e366ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/testing/testing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3e366ec

Please sign in to comment.