mirror of https://github.com/apache/lucene.git
Fix test to actually use the resource from the try/finally block
This commit is contained in:
parent
5fcb859ece
commit
fa878eb5b8
|
@ -2056,6 +2056,8 @@ public class TestIndexWriterExceptions extends LuceneTestCase {
|
|||
return true;
|
||||
}
|
||||
}) {
|
||||
writer.rollback();
|
||||
fail();
|
||||
}
|
||||
} catch (RuntimeException e) {
|
||||
assertEquals("boom", e.getMessage());
|
||||
|
|
Loading…
Reference in New Issue