make test less evil

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1617928 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-08-14 12:58:19 +00:00
parent f25288764a
commit 8d260c3bc0
1 changed files with 8 additions and 4 deletions

View File

@ -723,11 +723,15 @@ public class TestAutomaton extends LuceneTestCase {
break;
case 3:
if (VERBOSE) {
System.out.println(" op=minimize");
if (a.getNumStates() < 200) {
if (VERBOSE) {
System.out.println(" op=minimize");
}
// minimize
a = MinimizationOperations.minimize(a);
} else if (VERBOSE) {
System.out.println(" skip op=minimize: too many states (" + a.getNumStates() + ")");
}
// minimize
a = MinimizationOperations.minimize(a);
break;
case 4: