[no jira] tidy up test teardown - prevent subsequent ci failures in error

This commit is contained in:
gtully 2017-05-26 11:49:04 +01:00
parent 25f112c5c9
commit 30d3162982
1 changed files with 9 additions and 4 deletions

View File

@ -265,10 +265,15 @@ public class CompressionOverNetworkTest {
}
protected void doTearDown() throws Exception {
localConnection.close();
remoteConnection.close();
localBroker.stop();
remoteBroker.stop();
try {
localConnection.close();
remoteConnection.close();
} catch (Exception ignored) {}
try {
localBroker.stop();
} finally {
remoteBroker.stop();
}
}
protected void doSetUp(boolean deleteAllMessages) throws Exception {