camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r635181 - /activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaUdpUsingTemplateTest.java
Date Sun, 09 Mar 2008 07:31:05 GMT
Author: ningjiang
Date: Sat Mar  8 23:31:04 2008
New Revision: 635181

URL: http://svn.apache.org/viewvc?rev=635181&view=rev
Log:
Fixed the CI's unit test error

Modified:
    activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaUdpUsingTemplateTest.java

Modified: activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaUdpUsingTemplateTest.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaUdpUsingTemplateTest.java?rev=635181&r1=635180&r2=635181&view=diff
==============================================================================
--- activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaUdpUsingTemplateTest.java
(original)
+++ activemq/camel/trunk/components/camel-mina/src/test/java/org/apache/camel/component/mina/MinaUdpUsingTemplateTest.java
Sat Mar  8 23:31:04 2008
@@ -30,7 +30,7 @@
  */
 public class MinaUdpUsingTemplateTest extends ContextTestSupport {
     private static final transient Log LOG = LogFactory.getLog(MinaUdpUsingTemplateTest.class);
-    
+
     private int messageCount = 3;
 
     public void testMinaRoute() throws Exception {
@@ -38,6 +38,8 @@
         endpoint.expectedMessageCount(3);
 
         sendUdpMessages();
+        // sleeping for while to let the mock endpoint get all the message
+        Thread.sleep(1000);
 
         assertMockEndpointsSatisifed();
         List<Exchange> list = endpoint.getReceivedExchanges();



Mime
View raw message