From cc82b0d48ee65eba02f150978e2c675dd002f34b Mon Sep 17 00:00:00 2001
From: yuzou <zouyu7@huawei.com>
Date: Fri, 15 Jan 2016 17:22:43 +0800
Subject: [PATCH] In testsuites.go, enlarge the size of randomBytes to 128M to
 fix the crash of running TestConcurrentStreamReads

Signed-off-by: yuzou <zouyu7@huawei.com>
---
 registry/storage/driver/testsuites/testsuites.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/registry/storage/driver/testsuites/testsuites.go b/registry/storage/driver/testsuites/testsuites.go
index 703003098..6fea2def7 100644
--- a/registry/storage/driver/testsuites/testsuites.go
+++ b/registry/storage/driver/testsuites/testsuites.go
@@ -1144,7 +1144,7 @@ func randomFilename(length int64) string {
 
 // randomBytes pre-allocates all of the memory sizes needed for the test. If
 // anything panics while accessing randomBytes, just make this number bigger.
-var randomBytes = make([]byte, 96<<20)
+var randomBytes = make([]byte, 128<<20)
 
 func init() {
 	// increase the random bytes to the required maximum