null the static fields after test finishes

This commit is contained in:
Mike McCandless 2016-12-16 18:29:40 -05:00
parent c9522a3936
commit 5f4521de62
1 changed files with 5 additions and 0 deletions

View File

@ -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