fix test to not create such a big automaton

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1637448 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2014-11-07 21:10:07 +00:00
parent 39e7625798
commit 063b9c5c80
1 changed files with 2 additions and 2 deletions

View File

@ -242,9 +242,9 @@ public class TestAutomatonQuery extends LuceneTestCase {
}
}
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);