[ 
https://issues.apache.org/jira/browse/CAMEL-19535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-19535.
---------------------------------
    Resolution: Fixed

> camel-master: replace Thread.sleep in tests
> -------------------------------------------
>
>                 Key: CAMEL-19535
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19535
>             Project: Camel
>          Issue Type: Task
>          Components: camel-master, tests
>    Affects Versions: 4.0.0
>            Reporter: Otavio Rodolfo Piske
>            Assignee: Vaishnavi R
>            Priority: Minor
>              Labels: easy, help-wanted
>             Fix For: 4.6.0
>
>
> We have many tests which use Thread.sleep for synchronization. This is bug 
> prone and can introduce flakiness when running on environments with different 
> capacities.
> Ideally we should replace these with:
>  * [Awaitility|http://www.awaitility.org/]
>  * Java's native syncronization mechanism (Latches, Phasers, Locks, etc)
>  * Nothing (i.e.; in some cases the sleep can simply be removed)
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to