Apache Lucene open-source search software
LUCENE-5958: add logic to merge exc handling as well
Robert Muir079ad96d33a5
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.javaindex bd7e42ab3d1..247d88ee78e 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java@@ -435,6 +435,8 @@ public class TestIndexFileDeleter extends LuceneTestCase {// suppress only FakeIOException:if (exc instanceof RuntimeException && exc.getMessage().equals("fake fail")) {// ok to ignore+ } else if (exc instanceof AlreadyClosedException && exc.getCause() != null && "fake fail".equals(exc.getCause().getMessage())) {+ // also ok to ignore} else {super.handleMergeException(exc);}