Updated Branches: refs/heads/master 39268a8ec -> 7427a177f
fixed a unit test which fails from time to time on Jankins Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/7427a177 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/7427a177 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/7427a177 Branch: refs/heads/master Commit: 7427a177f5d85f0df9f869f1d20d0223a909e568 Parents: 39268a8 Author: cmueller <cmuel...@apache.org> Authored: Tue Jul 23 23:26:05 2013 +0200 Committer: cmueller <cmuel...@apache.org> Committed: Tue Jul 23 23:26:42 2013 +0200 ---------------------------------------------------------------------- .../camel/component/weather/BaseWeatherConsumerTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/7427a177/components/camel-weather/src/test/java/org/apache/camel/component/weather/BaseWeatherConsumerTest.java ---------------------------------------------------------------------- diff --git a/components/camel-weather/src/test/java/org/apache/camel/component/weather/BaseWeatherConsumerTest.java b/components/camel-weather/src/test/java/org/apache/camel/component/weather/BaseWeatherConsumerTest.java index 7345b3c..d45e9ff 100644 --- a/components/camel-weather/src/test/java/org/apache/camel/component/weather/BaseWeatherConsumerTest.java +++ b/components/camel-weather/src/test/java/org/apache/camel/component/weather/BaseWeatherConsumerTest.java @@ -16,6 +16,8 @@ */ package org.apache.camel.component.weather; +import java.util.concurrent.TimeUnit; + import org.apache.camel.Exchange; import org.apache.camel.Message; import org.apache.camel.component.mock.MockEndpoint; @@ -37,7 +39,9 @@ public abstract class BaseWeatherConsumerTest extends CamelTestSupport { MockEndpoint mock = getMockEndpoint("mock:result"); // as the default delay option is one hour long, we expect exactly one message exchange mock.expectedMessageCount(1); - mock.assertIsSatisfied(); + + // give the route a bit time to start and fetch the weather info + assertMockEndpointsSatisfied(20, TimeUnit.SECONDS); Exchange exchange = mock.getExchanges().get(0); assertNotNull(exchange);