[no jira] more lenient for ci builds - intermittetnt failure

This commit is contained in:
gtully 2017-10-27 11:37:04 +01:00
parent 8e576be1d9
commit 005403e94b
1 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ public class JmsSchedulerTest extends JobSchedulerTestSupport {
// make sure the message isn't delivered early
Thread.sleep(2000);
assertEquals(latch.getCount(), COUNT);
latch.await(5, TimeUnit.SECONDS);
latch.await(10, TimeUnit.SECONDS);
assertEquals(latch.getCount(), 0);
connection.close();
}
@ -225,7 +225,7 @@ public class JmsSchedulerTest extends JobSchedulerTestSupport {
connection.start();
session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageConsumer consumer = session.createConsumer(destination);
Message msg = consumer.receive(5000);
Message msg = consumer.receive(10000);
assertNotNull("Didn't receive the message", msg);
//send another message