LUCENE-10092: fix test bug by forceMerging the index down to one segment

This commit is contained in:
Mike McCandless 2021-09-08 14:01:10 -04:00
parent 7eb35be045
commit ee0695eda8
1 changed files with 1 additions and 0 deletions

View File

@ -124,6 +124,7 @@ public class TestCheckIndex extends BaseTestCheckIndex {
tombstone.add(new NumericDocValuesField("soft_delete", 1));
w.softUpdateDocument(
new Term("id", "1"), tombstone, new NumericDocValuesField("soft_delete", 1));
w.forceMerge(1);
}
ByteArrayOutputStream output = new ByteArrayOutputStream();