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 2020/06/29 14:48:02 UTC
[lucene-solr] branch jira/lucene-8962 updated: LUCENE-8962: fix
test case to use no merge policy since it wants explicit segments
This is an automated email from the ASF dual-hosted git repository.
mikemccand pushed a commit to branch jira/lucene-8962
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git
The following commit(s) were added to refs/heads/jira/lucene-8962 by this push:
new 419f309 LUCENE-8962: fix test case to use no merge policy since it wants explicit segments
419f309 is described below
commit 419f309435c77d9b816628f56c9a533d0799128c
Author: Mike McCandless <mi...@apache.org>
AuthorDate: Mon Jun 29 10:47:40 2020 -0400
LUCENE-8962: fix test case to use no merge policy since it wants explicit segments
---
.../org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java b/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java
index 9c845f6..1a10610 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestSoftDeletesRetentionMergePolicy.java
@@ -109,7 +109,7 @@ public class TestSoftDeletesRetentionMergePolicy extends LuceneTestCase {
public void testKeepFullyDeletedSegments() throws IOException {
Directory dir = newDirectory();
- IndexWriterConfig indexWriterConfig = newIndexWriterConfig();
+ IndexWriterConfig indexWriterConfig = newIndexWriterConfig().setMergePolicy(NoMergePolicy.INSTANCE);
IndexWriter writer = new IndexWriter(dir, indexWriterConfig);
Document doc = new Document();