SOLR-2331: fix too many close on SolrCore test issue

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1159921 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2011-08-20 21:58:14 +00:00
parent b7846ffaa1
commit 5e45cf89eb
1 changed files with 2 additions and 7 deletions

View File

@ -130,6 +130,8 @@ public class TestCoreContainer extends SolrTestCaseJ4 {
FileUtils.contentEquals(threeXml, fourXml));
} finally {
// y is closed by the container, but
// x has been removed from the container
if (x != null) {
try {
x.close();
@ -137,13 +139,6 @@ public class TestCoreContainer extends SolrTestCaseJ4 {
log.error("", e);
}
}
if (y != null) {
try {
y.close();
} catch (Exception e) {
log.error("", e);
}
}
}
}