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

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@834830 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-11-11 10:14:04 +00:00
parent 3536b1e665
commit fb7d8d82d6
1 changed files with 2 additions and 1 deletions

View File

@ -34,7 +34,8 @@ public class HttpTransportBrokerTest extends TransportBrokerTestSupport {
protected void setUp() throws Exception {
maxWait = 2000;
super.setUp();
Thread.sleep(500);
Thread.sleep(1000);
Thread.yield();
}
protected BrokerService createBroker() throws Exception {