mirror of https://github.com/apache/lucene.git
test bug: close the right reader (the one we passed to newSearcher)
This commit is contained in:
parent
030caba6cb
commit
136a05b0b1
|
@ -489,7 +489,7 @@ public class CommonTermsQueryTest extends LuceneTestCase {
|
|||
QueryUtils.check(random(), cq, newSearcher(reader2));
|
||||
reader2.close();
|
||||
} finally {
|
||||
IOUtils.close(wrapper, w, dir, analyzer);
|
||||
IOUtils.close(reader, w, dir, analyzer);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue