Fix test to actually use the resource from the try/finally block

This commit is contained in:
Simon Willnauer 2020-08-20 08:45:14 +02:00
parent 5fcb859ece
commit fa878eb5b8
1 changed files with 2 additions and 0 deletions

View File

@ -2056,6 +2056,8 @@ public class TestIndexWriterExceptions extends LuceneTestCase {
return true;
}
}) {
writer.rollback();
fail();
}
} catch (RuntimeException e) {
assertEquals("boom", e.getMessage());