From 87670c613fa9361dc11213092b9abc8d1b2502ab Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Thu, 7 Aug 2014 18:40:47 -0400 Subject: [PATCH] ensure we exceed 65k in size sometimes in test --- .../common/compress/CompressedStreamTests.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/java/org/elasticsearch/common/compress/CompressedStreamTests.java b/src/test/java/org/elasticsearch/common/compress/CompressedStreamTests.java index dc6d8866e27..540a8b0a8de 100644 --- a/src/test/java/org/elasticsearch/common/compress/CompressedStreamTests.java +++ b/src/test/java/org/elasticsearch/common/compress/CompressedStreamTests.java @@ -65,8 +65,8 @@ public class CompressedStreamTests extends ElasticsearchTestCase { public void testRepetitionsL() throws IOException { Random r = getRandom(); - for (int i = 0; i < 1000; i++) { - int numLongs = TestUtil.nextInt(r, 1, 1000); + for (int i = 0; i < 200; i++) { + int numLongs = TestUtil.nextInt(r, 1, 10000); ByteArrayOutputStream bos = new ByteArrayOutputStream(); long theValue = r.nextLong(); for (int j = 0; j < numLongs; j++) { @@ -88,8 +88,8 @@ public class CompressedStreamTests extends ElasticsearchTestCase { public void testRepetitionsI() throws IOException { Random r = getRandom(); - for (int i = 0; i < 1000; i++) { - int numInts = TestUtil.nextInt(r, 1, 1000); + for (int i = 0; i < 200; i++) { + int numInts = TestUtil.nextInt(r, 1, 20000); ByteArrayOutputStream bos = new ByteArrayOutputStream(); int theValue = r.nextInt(); for (int j = 0; j < numInts; j++) { @@ -107,8 +107,8 @@ public class CompressedStreamTests extends ElasticsearchTestCase { public void testRepetitionsS() throws IOException { Random r = getRandom(); - for (int i = 0; i < 1000; i++) { - int numShorts = TestUtil.nextInt(r, 1, 1000); + for (int i = 0; i < 200; i++) { + int numShorts = TestUtil.nextInt(r, 1, 40000); ByteArrayOutputStream bos = new ByteArrayOutputStream(); short theValue = (short) r.nextInt(65535); for (int j = 0; j < numShorts; j++) {