1
0
mirror of https://github.com/golang/go synced 2024-10-03 05:11:21 -06:00
go/src/testing
Caleb Spare a150c4ff24 testing: pause the test timer while waiting in T.Parallel
Before, we reset the timer at the end of T.Parallel, which is okay
assuming that T.Parallel is the first thing in the test.

Snapshot the elapsed time at the beginning of Parallel and include it in
the total duration so that any time spent in the test before calling
Parallel is reported in the test duration as well.

Updates #12243.

Change-Id: Ieca553e1f801e16b9b6416463fa8f7fa65425185
Reviewed-on: https://go-review.googlesource.com/16989
Reviewed-by: Russ Cox <rsc@golang.org>
2015-11-24 17:07:45 +00:00
..
iotest testing/iotest: fix copy/paste error in comment 2014-12-29 19:05:37 +00:00
quick testing/quick: terminate for arbitrary recursive types 2015-08-29 19:23:37 +00:00
allocs_test.go runtime: account for tiny allocs, for testing.AllocsPerRun 2014-09-17 14:49:32 -04:00
allocs.go
benchmark_test.go
benchmark.go testing: pad benchmark names to align results 2015-02-07 21:52:25 +00:00
cover.go
example.go testing: make the output of -v more uniform and aligned when using fixed-width fonts 2015-05-08 18:38:25 +00:00
export_test.go
testing_test.go cmd/go, testing: add TestMain support 2014-09-19 13:51:06 -04:00
testing.go testing: pause the test timer while waiting in T.Parallel 2015-11-24 17:07:45 +00:00