mirror of https://github.com/apache/lucene.git
LUCENE-8984: Fix ut by cleaning up resources after test
This commit is contained in:
parent
25f88c5a63
commit
a333b6dee3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue