diff --git a/activemq-optional/src/test/java/org/apache/activemq/transport/http/HttpTransportBrokerTest.java b/activemq-optional/src/test/java/org/apache/activemq/transport/http/HttpTransportBrokerTest.java index b1c1a47498..8010dfc44f 100755 --- a/activemq-optional/src/test/java/org/apache/activemq/transport/http/HttpTransportBrokerTest.java +++ b/activemq-optional/src/test/java/org/apache/activemq/transport/http/HttpTransportBrokerTest.java @@ -32,6 +32,12 @@ public class HttpTransportBrokerTest extends TransportBrokerTestSupport { super.setUp(); } + protected void tearDown() throws Exception { + super.tearDown(); + // Give the jetty server enough time to shutdown before starting another one + Thread.sleep(300); + } + public static Test suite() { return suite(HttpTransportBrokerTest.class); }