Apache Lucene open-source search software
LUCENE-9247: Exclude `write.lock` from files whose integrity is expected to be verified.
Adrien Grandc929b65c8116
diff --git a/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java b/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.javaindex 7d017e7b9b8..44303cfbb75 100644--- a/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java+++ b/lucene/test-framework/src/java/org/apache/lucene/index/BaseIndexFileFormatTestCase.java@@ -896,6 +896,7 @@ abstract class BaseIndexFileFormatTestCase extends LuceneTestCase {Set<String> unreadFiles = new HashSet<>(Arrays.asList(readBytesWrapperDir.listAll()));unreadFiles.removeAll(readBytesMap.keySet());+ unreadFiles.remove(IndexWriter.WRITE_LOCK_NAME);assertTrue("Some files have not been open: " + unreadFiles, unreadFiles.isEmpty());List<String> messages = new ArrayList<>();