LUCENE-8984: Fix ut by cleaning up resources after test

This commit is contained in:
jimczi 2019-09-25 12:44:25 +02:00
parent 25f88c5a63
commit a333b6dee3
1 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,10 @@ public class TestMoreLikeThis extends LuceneTestCase {
term = ((TermQuery) ((List<BooleanClause>) clauses).get(1).getQuery()).getTerm();
assertTrue(term.text().equals("tenth"));
// clean up
reader.close();
dir.close();
analyzer.close();
}
public void testBoostFactor() throws Throwable {