diff options
author | Russ Cox <rsc@golang.org> | 2019-05-15 20:49:39 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2019-05-22 12:54:00 +0000 |
commit | 06b0babf3138d189f6e741561f77ac6146696377 (patch) | |
tree | 04cda16449e7f9dfdd9e14926ef78e4e0d61be78 /src/compress | |
parent | b0e238add5dc8ab80b4eade78ca047f074658dcd (diff) | |
download | go-06b0babf3138d189f6e741561f77ac6146696377.tar.gz go-06b0babf3138d189f6e741561f77ac6146696377.zip |
all: shorten some tests
Shorten some of the longest tests that run during all.bash.
Removes 7r 50u 21s from all.bash.
After this change, all.bash is under 5 minutes again on my laptop.
For #26473.
Change-Id: Ie0460aa935808d65460408feaed210fbaa1d5d79
Reviewed-on: https://go-review.googlesource.com/c/go/+/177559
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/compress')
-rw-r--r-- | src/compress/flate/deflate_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compress/flate/deflate_test.go b/src/compress/flate/deflate_test.go index 079c03c283..4b1ed549a4 100644 --- a/src/compress/flate/deflate_test.go +++ b/src/compress/flate/deflate_test.go @@ -345,6 +345,9 @@ func testToFromWithLimit(t *testing.T, input []byte, name string, limit [11]int) func TestDeflateInflate(t *testing.T) { t.Parallel() for i, h := range deflateInflateTests { + if testing.Short() && len(h.in) > 10000 { + continue + } testToFromWithLimit(t, h.in, fmt.Sprintf("#%d", i), [11]int{}) } } @@ -591,6 +594,9 @@ func TestBestSpeed(t *testing.T) { } for i, tc := range testCases { + if i >= 3 && testing.Short() { + break + } for _, firstN := range []int{1, 65534, 65535, 65536, 65537, 131072} { tc[0] = firstN outer: |