mirror of https://github.com/apache/lucene.git
fix test failure: limit max token length
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1574917 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cdf254415b
commit
692f577d43
|
@ -440,8 +440,10 @@ public abstract class ThreadedIndexingAndSearchingTestCase extends LuceneTestCas
|
|||
if (dir instanceof BaseDirectoryWrapper) {
|
||||
((BaseDirectoryWrapper) dir).setCheckIndexOnClose(false); // don't double-checkIndex, we do it ourselves.
|
||||
}
|
||||
MockAnalyzer analyzer = new MockAnalyzer(random());
|
||||
analyzer.setMaxTokenLength(TestUtil.nextInt(random(), 1, IndexWriter.MAX_TERM_LENGTH));
|
||||
final IndexWriterConfig conf = newIndexWriterConfig(TEST_VERSION_CURRENT,
|
||||
new MockAnalyzer(random())).setInfoStream(new FailOnNonBulkMergesInfoStream());
|
||||
analyzer).setInfoStream(new FailOnNonBulkMergesInfoStream());
|
||||
|
||||
if (LuceneTestCase.TEST_NIGHTLY) {
|
||||
// newIWConfig makes smallish max seg size, which
|
||||
|
|
Loading…
Reference in New Issue