diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-04-26 09:55:32 +0200 | 
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-04-26 09:55:32 +0200 | 
| commit | 7b15ed9ef455b6b66c6b376898a88aef5d6a9970 (patch) | |
| tree | 3ef530baa80cdf29436ba981f5783be6b4d2202b /src/pkg/bytes/bytes_test.go | |
| parent | 50104cc32a498f7517a51c8dc93106c51c7a54b4 (diff) | |
| download | golang-7b15ed9ef455b6b66c6b376898a88aef5d6a9970.tar.gz | |
Imported Upstream version 2011.04.13upstream/2011.04.13
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 063686ec5..4ce291a4f 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 | 
