diff options
| author | Daniel Martà <mvdan@mvdan.cc> | 2017-02-03 10:18:04 +0000 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2017-02-07 15:30:49 +0000 |
| commit | 3e366ec6a7066567b4f747984389ab10cb6f1a46 (patch) | |
| tree | 2fd693d1ded6732527217438b25b3aae23f75f7a /src/testing/testing.go | |
| parent | 14347ee480968c712ea885a4ea62779fd8a0dc44 (diff) | |
| download | go-3e366ec6a7066567b4f747984389ab10cb6f1a46.tar.xz | |
testing: clarify T.Parallel() godoc wording
Fixes #18914.
Change-Id: Iec90d6aaa62595983db28b17794429f3c9a3dc36
Reviewed-on: https://go-review.googlesource.com/36272
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/testing/testing.go')
| -rw-r--r-- | src/testing/testing.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go index 97c703d8ba..d63d5d85a7 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -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") |
