Apache Solr open-source search software
Fix test to actually use the resource from the try/finally block
Simon Willnauerfa878eb5b8bc
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.javaindex 2594f2f6d9f..aa3a162a2a9 100644--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java@@ -2056,6 +2056,8 @@ public class TestIndexWriterExceptions extends LuceneTestCase {return true;}}) {+ writer.rollback();+ fail();}} catch (RuntimeException e) {assertEquals("boom", e.getMessage());