SOLR-6363: fix test bug - shut down Derby properly

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1617314 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Dyer 2014-08-11 16:04:59 +00:00
parent 46d129a4ea
commit abcbfddd8c
2 changed files with 3 additions and 1 deletions

View File

@ -348,6 +348,8 @@ Other Changes
* SOLR-6362: Fix bug in TestSqlEntityProcessorDelta. (James Dyer) * SOLR-6362: Fix bug in TestSqlEntityProcessorDelta. (James Dyer)
* SOLR-6363: Fix DIH JDBC tests to properly shut down embedded Derby db. (James Dyer)
================== 4.9.0 ================== ================== 4.9.0 ==================
Versions of Major Components Versions of Major Components

View File

@ -74,7 +74,7 @@ public abstract class AbstractDIHJdbcTestCase extends
@AfterClass @AfterClass
public static void afterClassDihJdbcTest() throws Exception { public static void afterClassDihJdbcTest() throws Exception {
try { try {
DriverManager.getConnection("jdbc:derby:;close=true;territory=en_US"); DriverManager.getConnection("jdbc:derby:;shutdown=true");
} catch (SQLException e) { } catch (SQLException e) {
// ignore...we might not even be using derby this time... // ignore...we might not even be using derby this time...
} }