mirror of https://github.com/apache/activemq.git
ensure speedy stop of broker on connection close
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1350572 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bf1f755299
commit
4e011e0a85
|
@ -84,6 +84,8 @@ public class PooledConnectionTest extends TestCase {
|
|||
Assert.fail("calling ActiveMQConnection.setClientID() twice with different clientID must raise an IllegalStateException");
|
||||
} catch (IllegalStateException ise) {
|
||||
log.debug("Correctly received " + ise);
|
||||
} finally {
|
||||
conn.close();
|
||||
}
|
||||
|
||||
// 3rd test: try to call setClientID() after start()
|
||||
|
@ -96,6 +98,8 @@ public class PooledConnectionTest extends TestCase {
|
|||
Assert.fail("Calling setClientID() after start() mut raise a JMSException.");
|
||||
} catch (IllegalStateException ise) {
|
||||
log.debug("Correctly received " + ise);
|
||||
} finally {
|
||||
conn.close();
|
||||
}
|
||||
|
||||
log.debug("Test finished.");
|
||||
|
|
Loading…
Reference in New Issue