longer receive timeout on first message, intermittent ci failure

This commit is contained in:
gtully 2016-05-25 12:45:07 +01:00
parent 281fbb1f9d
commit e467f34cc1
1 changed files with 2 additions and 2 deletions

View File

@ -261,7 +261,7 @@ public class QueueZeroPrefetchLazyDispatchPriorityTest {
boolean finished = false;
while (!finished) {
Message message = consumer.receive(1000);
Message message = consumer.receive(returnedMessages.isEmpty() ? 5000 : 1000);
if (message == null) {
finished = true;
}
@ -292,7 +292,7 @@ public class QueueZeroPrefetchLazyDispatchPriorityTest {
MessageConsumer consumer = session.createConsumer(new ActiveMQQueue(queueName));
connection.start();
return consumer.receive(2000);
return consumer.receive(5000);
} finally {
if (connection != null) {
connection.close();