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,7 +84,9 @@ 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()
|
||||
// should result in an exception
|
||||
|
@ -96,7 +98,9 @@ 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