From e2a9b04213070331d1bacb00e08c1d8cd091594b Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Thu, 17 Dec 2015 18:21:15 +0000 Subject: [PATCH] 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 --- .../src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solr/core/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java b/solr/core/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java index 944b707e5c7..66e25dd2699 100644 --- a/solr/core/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java +++ b/solr/core/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java @@ -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(); } }