Adjusted test timeout values for build server.

This commit is contained in:
Mark Fisher
2008-01-28 16:28:29 +00:00
parent 0618c0adbc
commit 7d8566ee2e
2 changed files with 3 additions and 3 deletions

View File

@@ -152,8 +152,8 @@ public class MessageBusTests {
bus.registerHandler("handler2", handler2, new Subscription(inputChannel));
bus.start();
inputChannel.send(new StringMessage(1, "testing"));
Message<?> message1 = outputChannel1.receive(100);
Message<?> message2 = outputChannel2.receive(0);
Message<?> message1 = outputChannel1.receive(200);
Message<?> message2 = outputChannel2.receive(200);
bus.stop();
assertTrue("both handlers should have received and replied to the message",
(message1 != null && message2 != null));

View File

@@ -176,7 +176,7 @@ public class DefaultMessageDispatcherTests {
dispatcher.start();
latch.await(2000, TimeUnit.MILLISECONDS);
assertEquals("messages should have been dispatched within allotted time", 0, latch.getCount());
Message<?> errorMessage = errorChannel.receive(500);
Message<?> errorMessage = errorChannel.receive(1000);
assertNotNull(errorMessage);
assertTrue(errorMessage instanceof ErrorMessage);
assertEquals(MessageDeliveryException.class, ((ErrorMessage) errorMessage).getPayload().getClass());