diff options
| author | Rob Pike <r@golang.org> | 2011-03-25 16:31:10 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2011-03-25 16:31:10 -0700 |
| commit | f0cf7d296c94536e7ddd9622cc9770c94b11b932 (patch) | |
| tree | 7befd8ab53738191bf991fa76cd3c626d9f5010f /src/pkg/bytes/bytes_test.go | |
| parent | 4cb660aad8c70c4c71f0020ac7a9bb17155b76ab (diff) | |
| download | go-f0cf7d296c94536e7ddd9622cc9770c94b11b932.tar.xz | |
testing: shorten some tests.
These are the top runners. More to come.
Also print two digits of timing info under -test.v.
R=rsc
CC=golang-dev
https://golang.org/cl/4317044
Diffstat (limited to 'src/pkg/bytes/bytes_test.go')
| -rw-r--r-- | src/pkg/bytes/bytes_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pkg/bytes/bytes_test.go b/src/pkg/bytes/bytes_test.go index 063686ec5d..4ce291a4f6 100644 --- a/src/pkg/bytes/bytes_test.go +++ b/src/pkg/bytes/bytes_test.go @@ -201,7 +201,10 @@ func TestIndexByte(t *testing.T) { // test a larger buffer with different sizes and alignments func TestIndexByteBig(t *testing.T) { - const n = 1024 + var n = 1024 + if testing.Short() { + n = 128 + } b := make([]byte, n) for i := 0; i < n; i++ { // different start alignments |
