activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1442172 - /activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverUpdateURIsTest.java
Date Mon, 04 Feb 2013 16:50:53 GMT
Author: gtully
Date: Mon Feb  4 16:50:53 2013
New Revision: 1442172

URL: http://svn.apache.org/viewvc?rev=1442172&view=rev
Log:
ensure connection is closed - fix intermittent failure

Modified:
    activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverUpdateURIsTest.java

Modified: activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverUpdateURIsTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverUpdateURIsTest.java?rev=1442172&r1=1442171&r2=1442172&view=diff
==============================================================================
--- activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverUpdateURIsTest.java
(original)
+++ activemq/trunk/activemq-unit-tests/src/test/java/org/apache/activemq/transport/failover/FailoverUpdateURIsTest.java
Mon Feb  4 16:50:53 2013
@@ -46,6 +46,7 @@ public class FailoverUpdateURIsTest exte
     BrokerService bs1 = null;
     BrokerService bs2 = null;
 
+    @Override
     public void tearDown() throws Exception {
         if (connection != null) {
             connection.close();
@@ -123,7 +124,7 @@ public class FailoverUpdateURIsTest exte
         bs1.start();
 
         ActiveMQConnectionFactory cf = new ActiveMQConnectionFactory("failover:(" + firstTcpUri
+ ")");
-        Connection connection = cf.createConnection();
+        connection = cf.createConnection();
         connection.start();
         Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
         Queue theQueue = session.createQueue(QUEUE_NAME);



Mime
View raw message