Apache Lucene open-source search software
force in-order merging for this test
Michael McCandless822eb32f3772
diff --git a/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java b/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.javaindex cfe6ecb423f..98cb5b50e96 100644--- a/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java+++ b/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java@@ -619,7 +619,7 @@ public class TestDeletionPolicy extends LuceneTestCase {Directory dir = newDirectory();IndexWriterConfig conf = newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer())- .setOpenMode(OpenMode.CREATE).setIndexDeletionPolicy(policy);+ .setOpenMode(OpenMode.CREATE).setIndexDeletionPolicy(policy).setMergePolicy(newInOrderLogMergePolicy());MergePolicy mp = conf.getMergePolicy();if (mp instanceof LogMergePolicy) {((LogMergePolicy) mp).setUseCompoundFile(useCompoundFile);