Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 24826 invoked from network); 19 Dec 2008 14:51:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2008 14:51:17 -0000 Received: (qmail 28095 invoked by uid 500); 19 Dec 2008 14:51:29 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 28075 invoked by uid 500); 19 Dec 2008 14:51:29 -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 28029 invoked by uid 99); 19 Dec 2008 14:51:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Dec 2008 06:51:29 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Fri, 19 Dec 2008 14:51:08 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1B55223889CF; Fri, 19 Dec 2008 06:50:48 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r728038 - /activemq/activemq-cpp/trunk/src/test-integration/activemq/test/CMSTestFixture.h Date: Fri, 19 Dec 2008 14:50:47 -0000 To: commits@activemq.apache.org From: tabish@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081219145048.1B55223889CF@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: tabish Date: Fri Dec 19 06:50:47 2008 New Revision: 728038 URL: http://svn.apache.org/viewvc?rev=728038&view=rev Log: Add a small delay in the shutdown sequence to allow all acks to make it back to the Broker. Modified: activemq/activemq-cpp/trunk/src/test-integration/activemq/test/CMSTestFixture.h Modified: activemq/activemq-cpp/trunk/src/test-integration/activemq/test/CMSTestFixture.h URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/src/test-integration/activemq/test/CMSTestFixture.h?rev=728038&r1=728037&r2=728038&view=diff ============================================================================== --- activemq/activemq-cpp/trunk/src/test-integration/activemq/test/CMSTestFixture.h (original) +++ activemq/activemq-cpp/trunk/src/test-integration/activemq/test/CMSTestFixture.h Fri Dec 19 06:50:47 2008 @@ -26,6 +26,8 @@ #include #include +#include + namespace activemq { namespace test { @@ -50,7 +52,12 @@ cmsProvider.reset( new util::CMSProvider( getBrokerURL() ) ); }; - virtual void tearDown() { cmsProvider.reset( NULL ); }; + virtual void tearDown() { + // Wait a small period of time to allow the messages to all get + // processed. + decaf::lang::Thread::sleep( 50 ); + cmsProvider.reset( NULL ); + }; };