Added timeouts because of hangs and very long runtimes on some CI boxes

This commit is contained in:
Kevin Earls 2014-11-03 17:08:55 +01:00
parent 914d3939c9
commit b70fc9a076
6 changed files with 10 additions and 10 deletions

View File

@ -42,7 +42,7 @@ public class ActiveMQBrokerFeatureTest extends AbstractJmsFeatureTest {
return configureBrokerStart(configure("activemq")); return configureBrokerStart(configure("activemq"));
} }
@Test @Test(timeout=2 * 60 * 1000)
public void test() throws Throwable { public void test() throws Throwable {
withinReason(new Callable<Boolean>() { withinReason(new Callable<Boolean>() {
@ -72,7 +72,7 @@ public class ActiveMQBrokerFeatureTest extends AbstractJmsFeatureTest {
assertEquals("got our message", nameAndPayload, consumeMessage(nameAndPayload)); assertEquals("got our message", nameAndPayload, consumeMessage(nameAndPayload));
} }
@Test @Test(timeout = 5 * 60 * 1000)
public void testTemporaryDestinations() throws Throwable { public void testTemporaryDestinations() throws Throwable {
Connection connection = getConnection(); Connection connection = getConnection();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);

View File

@ -40,7 +40,7 @@ public class ActiveMQBrokerNdCamelFeatureTest extends AbstractJmsFeatureTest {
), "activemq-camel"), baseOptions), "activemq-nd-camel"); ), "activemq-camel"), baseOptions), "activemq-nd-camel");
} }
@Test @Test(timeout = 2 * 60 * 1000)
public void test() throws Throwable { public void test() throws Throwable {
System.err.println(executeCommand("osgi:list").trim()); System.err.println(executeCommand("osgi:list").trim());

View File

@ -45,7 +45,7 @@ public class ActiveMQBrokerNdExternalCamelFeatureTest extends AbstractJmsFeature
), "activemq-camel"), baseOptions)); ), "activemq-camel"), baseOptions));
} }
@Test @Test(timeout = 2 * 60 * 1000)
public void test() throws Throwable { public void test() throws Throwable {
System.err.println(executeCommand("features:list").trim()); System.err.println(executeCommand("features:list").trim());

View File

@ -45,7 +45,7 @@ public class ActiveMQBrokerRuntimeConfigTest extends AbstractJmsFeatureTest {
configure("activemq")), "activemq-runtime-config")); configure("activemq")), "activemq-runtime-config"));
} }
@Test @Test(timeout = 2 * 60 * 1000)
public void test() throws Throwable { public void test() throws Throwable {
withinReason(new Callable<Boolean>() { withinReason(new Callable<Boolean>() {

View File

@ -31,7 +31,7 @@ public class ActiveMQClientBundleTest extends AbstractFeatureTest {
return configure("activemq-client"); return configure("activemq-client");
} }
@Test @Test(timeout = 2 * 60 * 1000)
public void test() throws Exception { public void test() throws Exception {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(); ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory();
factory.getBrokerURL(); factory.getBrokerURL();

View File

@ -38,22 +38,22 @@ public class ObrFeatureTest extends AbstractFeatureTest {
configure("obr")); configure("obr"));
} }
@Test @Test(timeout=5 * 60 * 1000)
public void testClient() throws Throwable { public void testClient() throws Throwable {
installAndAssertFeature("activemq-client"); installAndAssertFeature("activemq-client");
} }
@Test @Test(timeout=5 * 60 * 1000)
public void testActiveMQ() throws Throwable { public void testActiveMQ() throws Throwable {
installAndAssertFeature("activemq"); installAndAssertFeature("activemq");
} }
@Test @Test(timeout=5 * 60 * 1000)
public void testBroker() throws Throwable { public void testBroker() throws Throwable {
installAndAssertFeature("activemq-broker"); installAndAssertFeature("activemq-broker");
} }
@Test @Test(timeout=5 * 60 * 1000)
public void testCamel() throws Throwable { public void testCamel() throws Throwable {
System.err.println(executeCommand("features:addurl " + getCamelFeatureUrl())); System.err.println(executeCommand("features:addurl " + getCamelFeatureUrl()));
installAndAssertFeature("activemq-camel"); installAndAssertFeature("activemq-camel");