From dda0cd73a238d1a24b3de74aaa09f2d0c383ec4e Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Sun, 27 Nov 2011 19:52:40 +0000 Subject: [PATCH] LUCENE-3600: close searchers in test git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1206817 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/search/TestBlockJoin.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/join/src/test/org/apache/lucene/search/TestBlockJoin.java b/modules/join/src/test/org/apache/lucene/search/TestBlockJoin.java index 044c444b3c9..4429b051421 100644 --- a/modules/join/src/test/org/apache/lucene/search/TestBlockJoin.java +++ b/modules/join/src/test/org/apache/lucene/search/TestBlockJoin.java @@ -130,6 +130,7 @@ public class TestBlockJoin extends LuceneTestCase { Document parentDoc = s.doc(group.groupValue); assertEquals("Lisa", parentDoc.get("name")); + s.close(); r.close(); dir.close(); } @@ -458,7 +459,9 @@ public class TestBlockJoin extends LuceneTestCase { } } + s.close(); r.close(); + joinS.close(); joinR.close(); dir.close(); joinDir.close(); @@ -590,6 +593,7 @@ public class TestBlockJoin extends LuceneTestCase { assertEquals("Lisa", parentDoc.get("name")); + s.close(); r.close(); dir.close(); } @@ -614,6 +618,7 @@ public class TestBlockJoin extends LuceneTestCase { Weight weight = s.createNormalizedWeight(q); DocIdSetIterator disi = weight.scorer(ReaderUtil.leaves(s.getIndexReader().getTopReaderContext())[0], true, true, null); assertEquals(1, disi.advance(1)); + s.close(); r.close(); dir.close(); } @@ -648,6 +653,7 @@ public class TestBlockJoin extends LuceneTestCase { Weight weight = s.createNormalizedWeight(q); DocIdSetIterator disi = weight.scorer(ReaderUtil.leaves(s.getIndexReader().getTopReaderContext())[0], true, true, null); assertEquals(2, disi.advance(0)); + s.close(); r.close(); dir.close(); }