You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2011/05/09 14:12:41 UTC
svn commit: r1100974 -
/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/PollEnricherTest.java
Author: davsclaus
Date: Mon May 9 12:12:40 2011
New Revision: 1100974
URL: http://svn.apache.org/viewvc?rev=1100974&view=rev
Log:
Need a little slack in this test
Modified:
camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/PollEnricherTest.java
Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/PollEnricherTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/PollEnricherTest.java?rev=1100974&r1=1100973&r2=1100974&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/PollEnricherTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/processor/enricher/PollEnricherTest.java Mon May 9 12:12:40 2011
@@ -47,6 +47,8 @@ public class PollEnricherTest extends Co
public void testPollEnrichInOnly() throws InterruptedException {
template.sendBody("seda:foo1", "blah");
+ Thread.sleep(250);
+
mock.expectedBodiesReceived("test:blah");
template.sendBody("direct:enricher-test-1", "test");
mock.assertIsSatisfied();
@@ -96,7 +98,7 @@ public class PollEnricherTest extends Co
public void testPollEnrichInOut() throws InterruptedException {
template.sendBody("seda:foo4", "blah");
- Thread.sleep(200);
+ Thread.sleep(250);
String result = (String) template.sendBody("direct:enricher-test-4", ExchangePattern.InOut, "test");
assertEquals("test:blah", result);
@@ -105,6 +107,8 @@ public class PollEnricherTest extends Co
public void testPollEnrichInOutPlusHeader() throws InterruptedException {
template.sendBody("seda:foo4", "blah");
+ Thread.sleep(250);
+
Exchange exchange = template.request("direct:enricher-test-4", new Processor() {
public void process(Exchange exchange) {
exchange.getIn().setHeader("foo", "bar");