fix test to expect AssertionError as well

This commit is contained in:
Michael McCandless 2015-09-16 04:31:27 -04:00 committed by mikemccand
parent 01e6d8e3dc
commit 51773f2a66
1 changed files with 3 additions and 1 deletions

View File

@ -1728,7 +1728,9 @@ public class InternalEngineTests extends ESTestCase {
engine = createEngine(store, primaryTranslogDir);
started = true;
break;
} catch (EngineCreationFailureException ex) {
} catch (EngineCreationFailureException | AssertionError ex) {
// IndexWriter can throw AssertionError on init (if asserts are enabled) if we throw FNFE/NSFE when it asserts that all
// referenced files in the current commit point do exist
}
}