mirror of
https://github.com/golang/go
synced 2024-11-22 05:44:41 -07:00
testing: fix wording in explanation of potential bug
TBR=rsc R=rsc CC=golang-dev https://golang.org/cl/5504075
This commit is contained in:
parent
66155134a7
commit
34139ee155
@ -240,9 +240,9 @@ func RunTests(matchString func(pat, str string) (bool, error), tests []InternalT
|
|||||||
runtime.GOMAXPROCS(procs)
|
runtime.GOMAXPROCS(procs)
|
||||||
// We build a new channel tree for each run of the loop.
|
// We build a new channel tree for each run of the loop.
|
||||||
// collector merges in one channel all the upstream signals from parallel tests.
|
// collector merges in one channel all the upstream signals from parallel tests.
|
||||||
// If all tests pump to the same channel, a bug can occur where a goroutine
|
// If all tests pump to the same channel, a bug can occur where a test
|
||||||
// kicks off a test, fails, and still delivers a completion signal, which skews the
|
// kicks off a gouroutine that Fails, yet the test still delivers a completion signal,
|
||||||
// counting.
|
// which skews the counting.
|
||||||
var collector = make(chan interface{})
|
var collector = make(chan interface{})
|
||||||
|
|
||||||
numParallel := 0
|
numParallel := 0
|
||||||
|
Loading…
Reference in New Issue
Block a user