LUCENE-2627: tone down test for slowlaris

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@990766 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2010-08-30 11:02:30 +00:00
parent 0bb2e73041
commit 2da92a1804
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ public class TestMultiMMap extends LuceneTestCase {
public void testRandomChunkSizes() throws Exception {
Random random = newRandom();
for (int i = 0; i < 10*RANDOM_MULTIPLIER; i++)
assertChunking(random, _TestUtil.nextInt(random, 1, 1000*RANDOM_MULTIPLIER));
assertChunking(random, _TestUtil.nextInt(random, 20, 100));
}
private void assertChunking(Random random, int chunkSize) throws Exception {
@ -66,7 +66,7 @@ public class TestMultiMMap extends LuceneTestCase {
doc.add(docid);
doc.add(junk);
int numDocs = 1000*RANDOM_MULTIPLIER;
int numDocs = 100;
for (int i = 0; i < numDocs; i++) {
docid.setValue("" + i);
junk.setValue(_TestUtil.randomUnicodeString(random));