mirror of https://github.com/apache/lucene.git
LUCENE-5958: add logic to merge exc handling as well
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1626363 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6824f9b401
commit
079ad96d33
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue