mirror of https://github.com/apache/lucene.git
[TEST] Prevent merges in simple tests that compare doc stats from IW
This commit is contained in:
parent
67cdd21996
commit
f7fa25069e
|
@ -3081,7 +3081,9 @@ public class TestIndexWriter extends LuceneTestCase {
|
||||||
|
|
||||||
public void testSoftUpdateDocuments() throws IOException {
|
public void testSoftUpdateDocuments() throws IOException {
|
||||||
Directory dir = newDirectory();
|
Directory dir = newDirectory();
|
||||||
IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig().setSoftDeletesField("soft_delete"));
|
IndexWriter writer = new IndexWriter(dir, newIndexWriterConfig()
|
||||||
|
.setMergePolicy(NoMergePolicy.INSTANCE)
|
||||||
|
.setSoftDeletesField("soft_delete"));
|
||||||
expectThrows(IllegalArgumentException.class, () -> {
|
expectThrows(IllegalArgumentException.class, () -> {
|
||||||
writer.softUpdateDocument(null, new Document(), new NumericDocValuesField("soft_delete", 1));
|
writer.softUpdateDocument(null, new Document(), new NumericDocValuesField("soft_delete", 1));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue