make test less evil

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1618128 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-08-15 09:50:12 +00:00
parent eddeca9215
commit ca08459be9
1 changed files with 10 additions and 4 deletions

View File

@ -580,10 +580,16 @@ public class TestAutomaton extends LuceneTestCase {
}
return Operations.determinize(a);
case 1:
if (VERBOSE) {
System.out.println(" randomNoOp: minimize");
if (a.getNumStates() < 100) {
if (VERBOSE) {
System.out.println(" randomNoOp: minimize");
}
return MinimizationOperations.minimize(a);
} else {
if (VERBOSE) {
System.out.println(" randomNoOp: skip op=minimize: too many states (" + a.getNumStates() + ")");
}
}
return MinimizationOperations.minimize(a);
case 2:
if (VERBOSE) {
System.out.println(" randomNoOp: removeDeadStates");
@ -723,7 +729,7 @@ public class TestAutomaton extends LuceneTestCase {
break;
case 3:
if (a.getNumStates() < 200) {
if (a.getNumStates() < 100) {
if (VERBOSE) {
System.out.println(" op=minimize");
}