diff options
author | Rob Pike <r@golang.org> | 2015-02-04 13:50:08 -0800 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2015-02-05 00:28:00 +0000 |
commit | 706cc13b211e7c8745c47ee1e49b8e765634bb6b (patch) | |
tree | 9951ea9775e72112995e6daab9ffd3bfa5e6f484 /src/cmd/pack | |
parent | 721d5893d7fbc6b1791ee067e95dab3ae8d7d13e (diff) | |
download | go-706cc13b211e7c8745c47ee1e49b8e765634bb6b.tar.gz go-706cc13b211e7c8745c47ee1e49b8e765634bb6b.zip |
cmd/pack: simplify the testing logic slightly
Followup to https://go-review.googlesource.com/3910
We only need 1000 iteratinons.
Change-Id: Ib63ae53105176abec77bad9609d638aeda7bcd61
Reviewed-on: https://go-review.googlesource.com/3901
Reviewed-by: Minux Ma <minux@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/pack')
-rw-r--r-- | src/cmd/pack/pack_test.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/cmd/pack/pack_test.go b/src/cmd/pack/pack_test.go index fbc6a3c698..0c58d628b4 100644 --- a/src/cmd/pack/pack_test.go +++ b/src/cmd/pack/pack_test.go @@ -257,15 +257,8 @@ func TestLargeDefs(t *testing.T) { } } - n := 10000 - if testing.Short() { - // Issue 9656: 10,000 is too aggressive for several - // builders, with ~120 MB of disk consumed. 1,000 is - // still enough to exercise the old bug. - n = 1000 - } printf("package large\n\ntype T struct {\n") - for i := 0; i < n; i++ { + for i := 0; i < 1000; i++ { printf("f%d int `tag:\"", i) for j := 0; j < 100; j++ { printf("t%d=%d,", j, j) |