diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java index 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());