You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2014/11/07 22:10:07 UTC
svn commit: r1637448 -
/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java
Author: mikemccand
Date: Fri Nov 7 21:10:07 2014
New Revision: 1637448
URL: http://svn.apache.org/r1637448
Log:
fix test to not create such a big automaton
Modified:
lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java
Modified: lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java?rev=1637448&r1=1637447&r2=1637448&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java (original)
+++ lucene/dev/trunk/lucene/core/src/test/org/apache/lucene/search/TestAutomatonQuery.java Fri Nov 7 21:10:07 2014
@@ -242,9 +242,9 @@ public class TestAutomatonQuery extends
}
}
- public void testHugeAutomaton() {
+ public void testBiggishAutomaton() {
List<BytesRef> terms = new ArrayList<>();
- while (terms.size() < 10000) {
+ while (terms.size() < 3000) {
terms.add(new BytesRef(TestUtil.randomUnicodeString(random())));
}
Collections.sort(terms);