tone down TestRandomChains to avoid ngram+shingle bombs etc

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1586724 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2014-04-11 17:25:40 +00:00
parent b6c975daa5
commit eb21a67619
1 changed files with 2 additions and 2 deletions

View File

@ -302,7 +302,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
// TODO: could cause huge ram usage to use full int range for some filters
// (e.g. allocate enormous arrays)
// return Integer.valueOf(random.nextInt());
return Integer.valueOf(TestUtil.nextInt(random, -100, 100));
return Integer.valueOf(TestUtil.nextInt(random, -50, 50));
}
});
put(char.class, new ArgProducer() {
@ -917,7 +917,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
System.out.println("Creating random analyzer:" + a);
}
try {
checkRandomData(random, a, 50*RANDOM_MULTIPLIER, 128, false,
checkRandomData(random, a, 50*RANDOM_MULTIPLIER, 80, false,
false /* We already validate our own offsets... */);
} catch (Throwable e) {
System.err.println("Exception from random analyzer: " + a);