camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Anstey (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CAMEL-966) Get rid of sleeps in tests
Date Fri, 21 Nov 2008 18:46:05 GMT

    [ https://issues.apache.org/activemq/browse/CAMEL-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=47563#action_47563
] 

Jonathan Anstey commented on CAMEL-966:
---------------------------------------

For anyone out there wishing to take a look at this one... a simple way to do this for some
tests is to use a mock endpoint at the end of a route that expects a message.

See the following commit for an example:
http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-jms/src/test/java/org/apache/camel/component/jms/JmsRouteToFileTest.java?r1=702548&r2=702547&pathrev=702548

Of course, we wouldn't want this kinda thing showing up in wiki snippets so use with caution.
Its really just an example of what it means to remove the sleeps in tests, in case my description
was not clear :)

> Get rid of sleeps in tests
> --------------------------
>
>                 Key: CAMEL-966
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-966
>             Project: Apache Camel
>          Issue Type: Task
>    Affects Versions: 1.4.0, 1.5.0
>            Reporter: Jonathan Anstey
>            Priority: Trivial
>             Fix For: 2.0.0
>
>
> There are a ton of Thread.sleeps used in tests. This makes them prone to failure on slower
machines and makes the build take longer. This should be fixed at some point. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message