camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r810899 - /camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jms/JmsPollEnrichTest.java
Date Thu, 03 Sep 2009 11:49:57 GMT
Author: davsclaus
Date: Thu Sep  3 11:49:56 2009
New Revision: 810899

URL: http://svn.apache.org/viewvc?rev=810899&view=rev
Log:
Fixed unit test occational failing

Modified:
    camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jms/JmsPollEnrichTest.java

Modified: camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jms/JmsPollEnrichTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jms/JmsPollEnrichTest.java?rev=810899&r1=810898&r2=810899&view=diff
==============================================================================
--- camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jms/JmsPollEnrichTest.java
(original)
+++ camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/jms/JmsPollEnrichTest.java
Thu Sep  3 11:49:56 2009
@@ -34,8 +34,6 @@
     public void testPollEnrichJms() throws Exception {
         template.sendBody("jms:queue:foo", "Bye World");
 
-        Thread.sleep(500);
-
         MockEndpoint mock = getMockEndpoint("mock:result");
         mock.expectedBodiesReceived("Bye World");
 
@@ -48,7 +46,7 @@
     protected RouteBuilder createRouteBuilder() throws Exception {
         return new RouteBuilder() {
             public void configure() {
-                from("direct:start").pollEnrich("jms:queue:foo").to("mock:result");
+                from("direct:start").pollEnrich("jms:queue:foo", 5000).to("mock:result");
             }
         };
     }



Mime
View raw message