SOLR-8279: Close factories in unrelated test.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1720624 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2015-12-17 18:21:15 +00:00
parent fe7ef38b2e
commit e2a9b04213
1 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ public class RAMDirectoryFactoryTest extends LuceneTestCase {
factory.release(dir1);
factory.release(dir2);
factory.close();
}
private void dotestOpenSucceedForEmptyDir() throws IOException {
@ -59,5 +60,6 @@ public class RAMDirectoryFactoryTest extends LuceneTestCase {
assertNotNull("RAMDirectoryFactory should create RefCntRamDirectory even if the path doen't lead " +
"to index directory on the file system", dir);
factory.release(dir);
factory.close();
}
}