Return-Path: X-Original-To: apmail-activemq-commits-archive@www.apache.org Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 36684EE1C for ; Mon, 4 Feb 2013 16:51:16 +0000 (UTC) Received: (qmail 25150 invoked by uid 500); 4 Feb 2013 16:51:16 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 25027 invoked by uid 500); 4 Feb 2013 16:51:14 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 25002 invoked by uid 99); 4 Feb 2013 16:51:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 16:51:13 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Feb 2013 16:51:12 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 5B80B2388A33; Mon, 4 Feb 2013 16:50:53 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@activemq.apache.org From: gtully@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130204165053.5B80B2388A33@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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);