ARTEMIS-606 JMSServerControl2Test#testCloseConsumerConnectionsForAddressForInVM fails
Based on log it is clear that the connection was closed by Finalizer before the failure was caused by the test itself. Since the connection variable is not referenced in the code anymore, JVM concludes it can destroy the object. Especially IBM JDK does it very fast.
This commit is contained in:
parent
db251cc200
commit
45e4138fad
|
@ -986,6 +986,7 @@ public class JMSServerControl2Test extends ManagementTestBase {
|
|||
Assert.assertEquals(0, queueControl.getConsumerCount());
|
||||
Assert.assertEquals(1, queueControl2.getConsumerCount());
|
||||
|
||||
connection.close();
|
||||
connection2.close();
|
||||
}
|
||||
finally {
|
||||
|
@ -1148,6 +1149,7 @@ public class JMSServerControl2Test extends ManagementTestBase {
|
|||
Assert.assertEquals(0, queueControl.getConsumerCount());
|
||||
Assert.assertEquals(1, queueControl2.getConsumerCount());
|
||||
|
||||
connection.close();
|
||||
connection2.close();
|
||||
}
|
||||
finally {
|
||||
|
|
Loading…
Reference in New Issue