make test less stressful

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1604563 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-06-22 12:07:48 +00:00
parent ad3200b726
commit 843f062817
1 changed files with 5 additions and 3 deletions

View File

@ -648,7 +648,7 @@ public class TestAutomaton extends LuceneTestCase {
int iters = atLeast(100);
if (VERBOSE) {
System.out.println("TEST: numTerms" + numTerms + " iters=" + iters);
System.out.println("TEST: numTerms=" + numTerms + " iters=" + iters);
}
Set<BytesRef> terms = new HashSet<>();
@ -661,11 +661,13 @@ public class TestAutomaton extends LuceneTestCase {
for(int iter=0;iter<iters;iter++) {
if (VERBOSE) {
System.out.println("TEST: iter=" + iter + " numTerms=" + terms.size());
System.out.println("TEST: iter=" + iter + " numTerms=" + terms.size() + " a.numStates=" + a.getNumStates());
/*
System.out.println(" terms:");
for(BytesRef term : terms) {
System.out.println(" " + term);
}
*/
}
switch(random().nextInt(15)) {
@ -941,7 +943,7 @@ public class TestAutomaton extends LuceneTestCase {
case 14:
// Safety in case we are really unlucky w/ the dice:
if (terms.size() <= numTerms * 10) {
if (terms.size() <= numTerms * 3) {
if (VERBOSE) {
System.out.println(" op=concat finite automaton");
}