You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2024/09/11 08:21:00 UTC

[jira] [Resolved] (CAMEL-19538) camel-mllp: replace Thread.sleep in tests

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

Otavio Rodolfo Piske resolved CAMEL-19538.
------------------------------------------
    Fix Version/s: 4.9.0
       Resolution: Fixed

Resolved with the linked PR.

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