Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 93810 invoked from network); 21 Mar 2006 16:09:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Mar 2006 16:09:58 -0000 Received: (qmail 61346 invoked by uid 500); 21 Mar 2006 16:09:57 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 61326 invoked by uid 500); 21 Mar 2006 16:09:57 -0000 Mailing-List: contact activemq-commits-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-commits@geronimo.apache.org Received: (qmail 61317 invoked by uid 99); 21 Mar 2006 16:09:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Mar 2006 08:09:57 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 21 Mar 2006 08:09:57 -0800 Received: (qmail 93539 invoked by uid 65534); 21 Mar 2006 16:09:35 -0000 Message-ID: <20060321160935.93538.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r387563 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java Date: Tue, 21 Mar 2006 16:09:34 -0000 To: activemq-commits@geronimo.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.7 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: chirino Date: Tue Mar 21 08:09:33 2006 New Revision: 387563 URL: http://svn.apache.org/viewcvs?rev=387563&view=rev Log: Allow previous messages to drain before doing the real test. (makes the test more reliable) Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java?rev=387563&r1=387562&r2=387563&view=diff ============================================================================== --- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java (original) +++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/spring/SpringTest.java Tue Mar 21 08:09:33 2006 @@ -95,11 +95,14 @@ assertTrue("Found a valid consumer", consumer != null); consumer.start(); + + // Wait a little to drain any left over messages. + Thread.sleep(1000); + consumer.flushMessages(); producer = (SpringProducer) context.getBean("producer"); assertTrue("Found a valid producer", producer != null); - consumer.flushMessages(); producer.start(); // lets sleep a little to give the JMS time to dispatch stuff