DBZ-1401 Database blocked after test
This commit is contained in:
parent
7c4203cf60
commit
06509d26ce
@ -9,6 +9,7 @@
|
||||
import java.sql.SQLException;
|
||||
|
||||
import org.fest.assertions.Assertions;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Test;
|
||||
|
||||
@ -45,6 +46,13 @@ public void before() throws SQLException {
|
||||
Testing.Files.delete(TestHelper.DB_HISTORY_PATH);
|
||||
}
|
||||
|
||||
@After
|
||||
public void after() throws SQLException {
|
||||
if (connection != null) {
|
||||
connection.close();
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldProcessFromSnapshot() throws Exception {
|
||||
connection = TestHelper.testConnection();
|
||||
|
Loading…
Reference in New Issue
Block a user