| Commit in servicemix/base/src/test/java/org/servicemix/jbi/nmr/flow/jms on MAIN | |||
| JMSFlowTest.java | +3 | -1 | 1.2 -> 1.3 |
Fix the JMSFlowTest. This fix seems to denote a problem as when the sleep was not here, the message activating the component was not received (or not at the right time)...
servicemix/base/src/test/java/org/servicemix/jbi/nmr/flow/jms
diff -u -r1.2 -r1.3 --- JMSFlowTest.java 3 Oct 2005 20:56:35 -0000 1.2 +++ JMSFlowTest.java 7 Oct 2005 15:51:16 -0000 1.3 @@ -58,6 +58,8 @@
Object receiverFlow = receiverContainer.getFlow();
assertTrue(receiverFlow instanceof JMSFlow);
+ Thread.sleep(2000); +
receiver = new ReceiverComponent();
sender = new SenderComponent();
sender.setResolver(new ServiceNameEndpointResolver(ReceiverComponent.SERVICE));
@@ -66,7 +68,7 @@
receiverContainer.activateComponent(new ActivationSpec("receiver", receiver));
- Thread.sleep(5000);
+ Thread.sleep(2000);
}
protected void tearDown() throws Exception{
