mirror of https://github.com/apache/lucene.git
fix intermittent fail: prevent unexpected merging
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a994f36ad
commit
da01024477
|
@ -128,6 +128,9 @@ public class TestIndexWriterReader extends LuceneTestCase {
|
|||
|
||||
Directory dir1 = newDirectory();
|
||||
IndexWriter writer = new IndexWriter(dir1, newIndexWriterConfig( TEST_VERSION_CURRENT, new MockAnalyzer()));
|
||||
// test relies on no merges happening below:
|
||||
((LogMergePolicy) writer.getMergePolicy()).setMergeFactor(10);
|
||||
|
||||
writer.setInfoStream(infoStream);
|
||||
// create the index
|
||||
createIndexNoClose(!optimize, "index1", writer);
|
||||
|
|
Loading…
Reference in New Issue