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

Guillaume Nodet resolved CAMEL-23915.
-------------------------------------
    Resolution: Fixed

Fixed by https://github.com/apache/camel/pull/24443 (merged).

Replaced all 10 Thread.sleep(50) calls in MockEndpointTimeClauseTest with 
Awaitility-based assertions.

_Claude Code on behalf of Guillaume Nodet_

> Fix flaky MockEndpointTimeClauseTest in camel-core
> --------------------------------------------------
>
>                 Key: CAMEL-23915
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23915
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>              Labels: flaky-test
>             Fix For: 4.22.0
>
>
> The MockEndpointTimeClauseTest in camel-core uses Thread.sleep(50) in 10 
> places for timing synchronization, making it prone to flakiness on slow CI 
> machines.
> These Thread.sleep calls should be replaced with Awaitility-based assertions 
> per project guidelines.
> Affected file: 
> core/camel-core/src/test/java/org/apache/camel/component/mock/MockEndpointTimeClauseTest.java



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

Reply via email to