Increase the test timeout, passes locally if given enough time.

This commit is contained in:
Timothy Bish 2015-08-06 14:52:18 -04:00
parent 2b7bb6f81b
commit 70ef9b7e37
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ public class MemoryLimitTest extends TestSupport {
}
}
@Test(timeout = 120000)
@Test(timeout = 640000)
public void testCursorBatch() throws Exception {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("vm://localhost?jms.prefetchPolicy.all=10");
@ -150,7 +150,7 @@ public class MemoryLimitTest extends TestSupport {
for (int i = 1; i < 2000; i++) {
msg = consumer.receive(5000);
if (msg == null) {
dumpAllThreads("NoMessage");
dumpAllThreads("NoMessage");
}
assertNotNull("Didn't receive message " + i, msg);
msg.acknowledge();