mirror of
https://github.com/golang/go
synced 2024-11-19 03:54:42 -07:00
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>
This commit is contained in:
parent
14347ee480
commit
3e366ec6a7
@ -569,7 +569,9 @@ func (c *common) Skipped() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Parallel signals that this test is to be run in parallel with (and only with)
|
// 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() {
|
func (t *T) Parallel() {
|
||||||
if t.isParallel {
|
if t.isParallel {
|
||||||
panic("testing: t.Parallel called multiple times")
|
panic("testing: t.Parallel called multiple times")
|
||||||
|
Loading…
Reference in New Issue
Block a user