increased timeout on failing tests
This commit is contained in:
@@ -32,7 +32,7 @@ public class RetrievalBlockingMessageStoreTests {
|
||||
@Test
|
||||
public void testGetWithElapsedTimeout() {
|
||||
final RetrievalBlockingMessageStore store = new RetrievalBlockingMessageStore(10);
|
||||
publishWithDelay(store, "foo", "bar", 1000);
|
||||
publishWithDelay(store, "foo", "bar", 2000);
|
||||
Message<?> message = store.get("foo", 5);
|
||||
assertNull(message);
|
||||
}
|
||||
@@ -41,7 +41,7 @@ public class RetrievalBlockingMessageStoreTests {
|
||||
public void testWrappedTargetGetWithElapsedTimeout() {
|
||||
MessageStore target = new SimpleMessageStore(10);
|
||||
final RetrievalBlockingMessageStore store = new RetrievalBlockingMessageStore(target);
|
||||
publishWithDelay(store, "foo", "bar", 1000);
|
||||
publishWithDelay(store, "foo", "bar", 2000);
|
||||
Message<?> message = store.get("foo", 5);
|
||||
assertNull(message);
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ public class AggregatingMessageHandlerTests {
|
||||
AggregatorTestTask task2 = new AggregatorTestTask(aggregator, message2, latch);
|
||||
executor.execute(task1);
|
||||
executor.execute(task2);
|
||||
latch.await(2000, TimeUnit.MILLISECONDS);
|
||||
latch.await(3000, TimeUnit.MILLISECONDS);
|
||||
assertEquals("handlers should have been invoked within time limit", 0, latch.getCount());
|
||||
Message<?> reply = replyChannel.receive(1000);
|
||||
assertNotNull("a reply message should have been received", reply);
|
||||
|
||||
Reference in New Issue
Block a user