Skip to content

Commit

Permalink
Test also catches Errors from lucene
Browse files Browse the repository at this point in the history
  • Loading branch information
tinwelint committed Jul 22, 2016
1 parent 42fe71c commit d8a1d2a
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -87,7 +87,7 @@ public void testHardCoreRecovery() throws Exception
}
}
}
catch ( Exception e )
catch ( Throwable e )
{
if ( Exceptions.contains( e, CorruptIndexException.class ) ||
exceptionContainsStackTraceElementFromPackage( e, "org.apache.lucene" ) )
Expand Down Expand Up @@ -128,7 +128,7 @@ public void run()
db.shutdown();
}

private boolean exceptionContainsStackTraceElementFromPackage( Exception e, String packageName )
private boolean exceptionContainsStackTraceElementFromPackage( Throwable e, String packageName )
{
for ( StackTraceElement element : e.getStackTrace() )
{
Expand Down

0 comments on commit d8a1d2a

Please sign in to comment.