You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by mi...@apache.org on 2011/02/05 12:51:23 UTC
svn commit: r1067427 -
/lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java
Author: mikemccand
Date: Sat Feb 5 11:51:23 2011
New Revision: 1067427
URL: http://svn.apache.org/viewvc?rev=1067427&view=rev
Log:
force in-order merging for this test
Modified:
lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java
Modified: lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java?rev=1067427&r1=1067426&r2=1067427&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java (original)
+++ lucene/dev/trunk/lucene/src/test/org/apache/lucene/index/TestDeletionPolicy.java Sat Feb 5 11:51:23 2011
@@ -619,7 +619,7 @@ public class TestDeletionPolicy extends
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);