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"));
|
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);
|
||||||
|
|
|
@ -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());
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
|
|
|
@ -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>() {
|
||||||
|
|
|
@ -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();
|
||||||
|
|
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue