diff --git a/lucene/src/test/org/apache/lucene/store/TestBufferedIndexInput.java b/lucene/src/test/org/apache/lucene/store/TestBufferedIndexInput.java index 6b5c3b1946e..f40d8c3fefb 100755 --- a/lucene/src/test/org/apache/lucene/store/TestBufferedIndexInput.java +++ b/lucene/src/test/org/apache/lucene/store/TestBufferedIndexInput.java @@ -293,6 +293,7 @@ public class TestBufferedIndexInput extends LuceneTestCase { assertEquals(35, hits.length); writer.close(); searcher.close(); + reader.close(); } finally { _TestUtil.rmDir(indexDir); }