activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r834830 - /activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/transport/http/HttpTransportBrokerTest.java
Date Wed, 11 Nov 2009 10:14:06 GMT
Author: gtully
Date: Wed Nov 11 10:14:04 2009
New Revision: 834830

URL: http://svn.apache.org/viewvc?rev=834830&view=rev
Log:
resolve hudson intermittent failure, jetty acceptor uses a thread pool such that it does not
accept immediatly, a wait or yield is needed before connecting to ensure the listener is active,
extending this wait to 1second from the .5 second and adding a yield just in case

Modified:
    activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/transport/http/HttpTransportBrokerTest.java

Modified: activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/transport/http/HttpTransportBrokerTest.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/transport/http/HttpTransportBrokerTest.java?rev=834830&r1=834829&r2=834830&view=diff
==============================================================================
--- activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/transport/http/HttpTransportBrokerTest.java
(original)
+++ activemq/trunk/activemq-optional/src/test/java/org/apache/activemq/transport/http/HttpTransportBrokerTest.java
Wed Nov 11 10:14:04 2009
@@ -34,7 +34,8 @@
     protected void setUp() throws Exception {
         maxWait = 2000;
         super.setUp();
-        Thread.sleep(500);
+        Thread.sleep(1000);
+        Thread.yield();
     }
     
 	protected BrokerService createBroker() throws Exception {



Mime
View raw message