mirror of https://github.com/apache/activemq.git
Added timeouts because of hangs and very long runtimes on some CI boxes
This commit is contained in:
parent
914d3939c9
commit
b70fc9a076
|
@ -42,7 +42,7 @@ public class ActiveMQBrokerFeatureTest extends AbstractJmsFeatureTest {
|
|||
return configureBrokerStart(configure("activemq"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout=2 * 60 * 1000)
|
||||
public void test() throws Throwable {
|
||||
|
||||
withinReason(new Callable<Boolean>() {
|
||||
|
@ -72,7 +72,7 @@ public class ActiveMQBrokerFeatureTest extends AbstractJmsFeatureTest {
|
|||
assertEquals("got our message", nameAndPayload, consumeMessage(nameAndPayload));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout = 5 * 60 * 1000)
|
||||
public void testTemporaryDestinations() throws Throwable {
|
||||
Connection connection = getConnection();
|
||||
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
|
||||
|
|
|
@ -40,7 +40,7 @@ public class ActiveMQBrokerNdCamelFeatureTest extends AbstractJmsFeatureTest {
|
|||
), "activemq-camel"), baseOptions), "activemq-nd-camel");
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout = 2 * 60 * 1000)
|
||||
public void test() throws Throwable {
|
||||
System.err.println(executeCommand("osgi:list").trim());
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ public class ActiveMQBrokerNdExternalCamelFeatureTest extends AbstractJmsFeature
|
|||
), "activemq-camel"), baseOptions));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout = 2 * 60 * 1000)
|
||||
public void test() throws Throwable {
|
||||
|
||||
System.err.println(executeCommand("features:list").trim());
|
||||
|
|
|
@ -45,7 +45,7 @@ public class ActiveMQBrokerRuntimeConfigTest extends AbstractJmsFeatureTest {
|
|||
configure("activemq")), "activemq-runtime-config"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout = 2 * 60 * 1000)
|
||||
public void test() throws Throwable {
|
||||
|
||||
withinReason(new Callable<Boolean>() {
|
||||
|
|
|
@ -31,7 +31,7 @@ public class ActiveMQClientBundleTest extends AbstractFeatureTest {
|
|||
return configure("activemq-client");
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout = 2 * 60 * 1000)
|
||||
public void test() throws Exception {
|
||||
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory();
|
||||
factory.getBrokerURL();
|
||||
|
|
|
@ -38,22 +38,22 @@ public class ObrFeatureTest extends AbstractFeatureTest {
|
|||
configure("obr"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout=5 * 60 * 1000)
|
||||
public void testClient() throws Throwable {
|
||||
installAndAssertFeature("activemq-client");
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout=5 * 60 * 1000)
|
||||
public void testActiveMQ() throws Throwable {
|
||||
installAndAssertFeature("activemq");
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout=5 * 60 * 1000)
|
||||
public void testBroker() throws Throwable {
|
||||
installAndAssertFeature("activemq-broker");
|
||||
}
|
||||
|
||||
@Test
|
||||
@Test(timeout=5 * 60 * 1000)
|
||||
public void testCamel() throws Throwable {
|
||||
System.err.println(executeCommand("features:addurl " + getCamelFeatureUrl()));
|
||||
installAndAssertFeature("activemq-camel");
|
||||
|
|
Loading…
Reference in New Issue