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 912E69C7F for ; Thu, 26 Apr 2012 16:38:23 +0000 (UTC) Received: (qmail 39841 invoked by uid 500); 26 Apr 2012 16:38:23 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 39811 invoked by uid 500); 26 Apr 2012 16:38:23 -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 39803 invoked by uid 99); 26 Apr 2012 16:38:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2012 16:38:23 +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; Thu, 26 Apr 2012 16:38:21 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 487F523888EA for ; Thu, 26 Apr 2012 16:38:00 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1330940 - /activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala Date: Thu, 26 Apr 2012 16:38:00 -0000 To: commits@activemq.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20120426163800.487F523888EA@eris.apache.org> Author: chirino Date: Thu Apr 26 16:37:59 2012 New Revision: 1330940 URL: http://svn.apache.org/viewvc?rev=1330940&view=rev Log: Add a little sleep to make the test more reliable. Modified: activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala Modified: activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala?rev=1330940&r1=1330939&r2=1330940&view=diff ============================================================================== --- activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala (original) +++ activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala Thu Apr 26 16:37:59 2012 @@ -543,7 +543,8 @@ class StompPersistentQueueTest extends S var counter = 0 for( i <- 0 until 100 ) { connect("1.1") - subscribe("1", "/queue/BIGQUEUE", "client", false, "", false) + // Use exclusive to avoid 2 concurrent subs (disconnect is async..) + subscribe("1", "/queue/BIGQUEUE", "client", false, "exclusive:true\n", false) for( j <- 0 until 100 ) { assert_received("message #"+counter)(true) counter+=1 @@ -554,6 +555,7 @@ class StompPersistentQueueTest extends S "\n") wait_for_receipt("disco", client, true) client.close + Thread.sleep(200) } connect("1.1")