ensure we exceed 65k in size sometimes in test
This commit is contained in:
parent
59aabf30f8
commit
87670c613f
|
@ -65,8 +65,8 @@ public class CompressedStreamTests extends ElasticsearchTestCase {
|
||||||
|
|
||||||
public void testRepetitionsL() throws IOException {
|
public void testRepetitionsL() throws IOException {
|
||||||
Random r = getRandom();
|
Random r = getRandom();
|
||||||
for (int i = 0; i < 1000; i++) {
|
for (int i = 0; i < 200; i++) {
|
||||||
int numLongs = TestUtil.nextInt(r, 1, 1000);
|
int numLongs = TestUtil.nextInt(r, 1, 10000);
|
||||||
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||||
long theValue = r.nextLong();
|
long theValue = r.nextLong();
|
||||||
for (int j = 0; j < numLongs; j++) {
|
for (int j = 0; j < numLongs; j++) {
|
||||||
|
@ -88,8 +88,8 @@ public class CompressedStreamTests extends ElasticsearchTestCase {
|
||||||
|
|
||||||
public void testRepetitionsI() throws IOException {
|
public void testRepetitionsI() throws IOException {
|
||||||
Random r = getRandom();
|
Random r = getRandom();
|
||||||
for (int i = 0; i < 1000; i++) {
|
for (int i = 0; i < 200; i++) {
|
||||||
int numInts = TestUtil.nextInt(r, 1, 1000);
|
int numInts = TestUtil.nextInt(r, 1, 20000);
|
||||||
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||||
int theValue = r.nextInt();
|
int theValue = r.nextInt();
|
||||||
for (int j = 0; j < numInts; j++) {
|
for (int j = 0; j < numInts; j++) {
|
||||||
|
@ -107,8 +107,8 @@ public class CompressedStreamTests extends ElasticsearchTestCase {
|
||||||
|
|
||||||
public void testRepetitionsS() throws IOException {
|
public void testRepetitionsS() throws IOException {
|
||||||
Random r = getRandom();
|
Random r = getRandom();
|
||||||
for (int i = 0; i < 1000; i++) {
|
for (int i = 0; i < 200; i++) {
|
||||||
int numShorts = TestUtil.nextInt(r, 1, 1000);
|
int numShorts = TestUtil.nextInt(r, 1, 40000);
|
||||||
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
ByteArrayOutputStream bos = new ByteArrayOutputStream();
|
||||||
short theValue = (short) r.nextInt(65535);
|
short theValue = (short) r.nextInt(65535);
|
||||||
for (int j = 0; j < numShorts; j++) {
|
for (int j = 0; j < numShorts; j++) {
|
||||||
|
|
Loading…
Reference in New Issue