Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

test: close files so win can remove later

Yonik Seeley3d50b42f4cce
diff --git a/solr/src/test/org/apache/solr/core/TestArbitraryIndexDir.java b/solr/src/test/org/apache/solr/core/TestArbitraryIndexDir.java
index ddb58eb8059..b9c1e154e77 100644
--- a/solr/src/test/org/apache/solr/core/TestArbitraryIndexDir.java
+++ b/solr/src/test/org/apache/solr/core/TestArbitraryIndexDir.java
@@ -94,6 +94,8 @@ public class TestArbitraryIndexDir extends AbstractSolrTestCase{
} catch (Exception e) {
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR,
"Unable to write index.properties", e);
+ } finally {
+ if (os != null) os.close();
}
//add a doc in the new index dir