mirror of https://github.com/apache/lucene.git
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:
parent
b6c975daa5
commit
eb21a67619
|
@ -302,7 +302,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
|
||||||
// TODO: could cause huge ram usage to use full int range for some filters
|
// TODO: could cause huge ram usage to use full int range for some filters
|
||||||
// (e.g. allocate enormous arrays)
|
// (e.g. allocate enormous arrays)
|
||||||
// return Integer.valueOf(random.nextInt());
|
// 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() {
|
put(char.class, new ArgProducer() {
|
||||||
|
@ -917,7 +917,7 @@ public class TestRandomChains extends BaseTokenStreamTestCase {
|
||||||
System.out.println("Creating random analyzer:" + a);
|
System.out.println("Creating random analyzer:" + a);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
checkRandomData(random, a, 50*RANDOM_MULTIPLIER, 128, false,
|
checkRandomData(random, a, 50*RANDOM_MULTIPLIER, 80, false,
|
||||||
false /* We already validate our own offsets... */);
|
false /* We already validate our own offsets... */);
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
System.err.println("Exception from random analyzer: " + a);
|
System.err.println("Exception from random analyzer: " + a);
|
||||||
|
|
Loading…
Reference in New Issue