test bug: close the right reader (the one we passed to newSearcher)

This commit is contained in:
Mike McCandless 2016-03-11 04:53:43 -05:00
parent 030caba6cb
commit 136a05b0b1
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}