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:
Michael McCandless 2011-04-28 21:49:41 +00:00
parent 2245b7960f
commit fe1a1fbdec
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}