jpountz commented on code in PR #11794: URL: https://github.com/apache/lucene/pull/11794#discussion_r975170911
########## lucene/core/src/test/org/apache/lucene/search/TestFieldExistsQuery.java: ########## @@ -711,13 +711,15 @@ public void testDeleteAllPointDocs() throws Exception { doc.add(new LongPoint("long", 17)); doc.add(new NumericDocValuesField("long", 17)); iw.addDocument(doc); + iw.flush(); iw.addDocument(new Document()); iw.commit(); iw.deleteDocuments(new Term("id", "0")); iw.forceMerge(1); try (IndexReader reader = iw.getReader()) { + assert reader.leaves().size() == 1 && reader.hasDeletions() == false; Review Comment: use `assertTrue` so that it does rely on assertions being enabled? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org