test: close files so win can remove later

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@927091 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2010-03-24 15:49:30 +00:00
parent 954add8c31
commit 3d50b42f4c
1 changed files with 2 additions and 0 deletions

View File

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