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

Raj Kumar Pamu commented on CAMEL-19517:
----------------------------------------

_Hi Otavio,_

_I have submitted a Pull Request for the camel-cxf module to replace brittle 
Thread.sleep calls with dynamic Awaitility polling to prevent flakiness._ 

_The tests pass locally, and you can find the PR here: *CAMEL-19517: camel-cxf 
- replace Thread.sleep with Awaitility in tests*_

_Thank you!_

> camel-cxf: replace Thread.sleep in tests
> ----------------------------------------
>
>                 Key: CAMEL-19517
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19517
>             Project: Camel
>          Issue Type: Task
>          Components: camel-cxf, tests
>    Affects Versions: 4.0.0
>            Reporter: Otavio Rodolfo Piske
>            Priority: Minor
>              Labels: easy, help-wanted
>
> 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