mirror of https://github.com/apache/lucene.git
null the static fields after test finishes
This commit is contained in:
parent
c9522a3936
commit
5f4521de62
|
@ -81,6 +81,11 @@ public class TestFacetQuery extends FacetTestCase {
|
|||
@AfterClass
|
||||
public static void closeTestIndex() throws IOException {
|
||||
IOUtils.close(indexReader, indexWriter, indexDirectory);
|
||||
indexReader = null;
|
||||
indexWriter = null;
|
||||
indexDirectory = null;
|
||||
searcher = null;
|
||||
config = null;
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue