diff options
| author | Russ Cox <rsc@golang.org> | 2019-05-15 15:15:33 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2019-05-16 03:25:08 +0000 |
| commit | f2694534cf3591191a125815bae24cd12ea07022 (patch) | |
| tree | b50c1c663f3231a86e21475066e5f4235d6babac /src/testing/benchmark_test.go | |
| parent | 6ab049b96578547b78f919810d01f94d94cc1981 (diff) | |
| download | go-f2694534cf3591191a125815bae24cd12ea07022.tar.xz | |
testing: shorten go test -short testing
This cuts the time for 'go test -short testing' from 0.9s to < 0.1s.
Change-Id: Ib8402f80239e1e96ea5221dfd5cd0db08170d85b
Reviewed-on: https://go-review.googlesource.com/c/go/+/177420
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/testing/benchmark_test.go')
| -rw-r--r-- | src/testing/benchmark_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testing/benchmark_test.go b/src/testing/benchmark_test.go index a872d6798b..1434c2613f 100644 --- a/src/testing/benchmark_test.go +++ b/src/testing/benchmark_test.go @@ -68,6 +68,9 @@ func TestResultString(t *testing.T) { } func TestRunParallel(t *testing.T) { + if testing.Short() { + t.Skip("skipping in short mode") + } testing.Benchmark(func(b *testing.B) { procs := uint32(0) iters := uint64(0) |
