mirror of https://github.com/apache/lucene.git
fix false test failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1097627 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2245b7960f
commit
fe1a1fbdec
|
@ -635,12 +635,13 @@ public class TestDeletionPolicy extends LuceneTestCase {
|
|||
}
|
||||
conf = newIndexWriterConfig(
|
||||
TEST_VERSION_CURRENT, new MockAnalyzer(random))
|
||||
.setOpenMode(OpenMode.APPEND).setIndexDeletionPolicy(policy);
|
||||
.setOpenMode(OpenMode.APPEND).setIndexDeletionPolicy(policy).setMergePolicy(newLogMergePolicy());
|
||||
mp = conf.getMergePolicy();
|
||||
if (mp instanceof LogMergePolicy) {
|
||||
((LogMergePolicy) mp).setUseCompoundFile(useCompoundFile);
|
||||
}
|
||||
writer = new IndexWriter(dir, conf);
|
||||
writer.setInfoStream(VERBOSE ? System.out : null);
|
||||
for(int j=0;j<17;j++) {
|
||||
addDoc(writer);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue