mirror of https://github.com/apache/lucene.git
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:
parent
b7846ffaa1
commit
5e45cf89eb
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue