Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 92912 invoked from network); 14 Feb 2006 13:39:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Feb 2006 13:39:58 -0000 Received: (qmail 38169 invoked by uid 500); 14 Feb 2006 13:39:58 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 38146 invoked by uid 500); 14 Feb 2006 13:39: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 38137 invoked by uid 99); 14 Feb 2006 13:39:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2006 05:39: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, 14 Feb 2006 05:39:57 -0800 Received: (qmail 92821 invoked by uid 65534); 14 Feb 2006 13:39:36 -0000 Message-ID: <20060214133936.92820.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r377725 - /incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java Date: Tue, 14 Feb 2006 13:39:36 -0000 To: activemq-commits@geronimo.apache.org From: jstrachan@apache.org X-Mailer: svnmailer-1.0.6 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: jstrachan Date: Tue Feb 14 05:39:34 2006 New Revision: 377725 URL: http://svn.apache.org/viewcvs?rev=377725&view=rev Log: fixed unsubscribe test Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java Modified: incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java?rev=377725&r1=377724&r2=377725&view=diff ============================================================================== --- incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java (original) +++ incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/transport/stomp/StompTest.java Tue Feb 14 05:39:34 2006 @@ -178,7 +178,7 @@ sendFrame(frame); - TextMessage message = (TextMessage) consumer.receive(60000); + TextMessage message = (TextMessage) consumer.receive(1000); assertNotNull(message); assertEquals("Hello World", message.getText()); } @@ -323,8 +323,11 @@ "destination:/queue/" + getQueueName() + "\n" + "\n\n" + Stomp.NULL; - sendFrame(frame); + sendFrame(frame); + // lets wait for the unsubscribe to take effect + Thread.sleep(1000); + //send a message to our queue sendMessage("second message");