Apache Lucene open-source search software
add missing timeout for this monster test
Michael McCandless6565bc73fd8b
diff --git a/lucene/core/src/test/org/apache/lucene/index/Test2BTerms.java b/lucene/core/src/test/org/apache/lucene/index/Test2BTerms.javaindex 6ca07bcf737..05ae14972df 100644--- a/lucene/core/src/test/org/apache/lucene/index/Test2BTerms.java+++ b/lucene/core/src/test/org/apache/lucene/index/Test2BTerms.java@@ -17,23 +17,37 @@ package org.apache.lucene.index;* limitations under the License.*/-import org.apache.lucene.util.*;-import org.apache.lucene.util.LuceneTestCase.Monster;-import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;-import org.apache.lucene.store.*;-import org.apache.lucene.search.*;-import org.apache.lucene.analysis.*;-import org.apache.lucene.analysis.tokenattributes.*;-import org.apache.lucene.document.*;-import org.apache.lucene.index.FieldInfo.IndexOptions;-import org.junit.Ignore;-import java.io.IOException;import java.util.ArrayList;import java.util.Collections;import java.util.List;import java.util.Random;+import org.apache.lucene.analysis.MockAnalyzer;+import org.apache.lucene.analysis.TokenStream;+import org.apache.lucene.analysis.tokenattributes.CharTermAttribute;+import org.apache.lucene.analysis.tokenattributes.TermToBytesRefAttribute;+import org.apache.lucene.document.Document;+import org.apache.lucene.document.Field;+import org.apache.lucene.document.FieldType;+import org.apache.lucene.document.TextField;+import org.apache.lucene.index.FieldInfo.IndexOptions;+import org.apache.lucene.search.IndexSearcher;+import org.apache.lucene.search.TermQuery;+import org.apache.lucene.store.BaseDirectoryWrapper;+import org.apache.lucene.store.MockDirectoryWrapper;+import org.apache.lucene.util.Attribute;+import org.apache.lucene.util.AttributeImpl;+import org.apache.lucene.util.AttributeSource.AttributeFactory;+import org.apache.lucene.util.BytesRef;+import org.apache.lucene.util.LuceneTestCase.Monster;+import org.apache.lucene.util.LuceneTestCase.SuppressCodecs;+import org.apache.lucene.util.LuceneTestCase;+import org.apache.lucene.util.TestUtil;+import org.apache.lucene.util.TimeUnits;+import org.junit.Ignore;+import com.carrotsearch.randomizedtesting.annotations.TimeoutSuite;+// NOTE: SimpleText codec will consume very large amounts of// disk (but, should run successfully). Best to run w/// -Dtests.codec=<current codec>, and w/ plenty of RAM, eg:@@ -44,6 +58,7 @@ import java.util.Random;//@SuppressCodecs({ "SimpleText", "Memory", "Direct" })@Monster("very slow, use 8g heap")+@TimeoutSuite(millis = 6 * TimeUnits.HOUR)public class Test2BTerms extends LuceneTestCase {private final static int TOKEN_LEN = 5;