You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Craig Ziesman (Jira)" <ji...@apache.org> on 2024/03/12 20:18:00 UTC

[jira] [Closed] (CAMEL-20291) Test cases fail due to threading issues when running 'mvn test'

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

Craig Ziesman closed CAMEL-20291.
---------------------------------
    Resolution: Invalid

Opened in error

> Test cases fail due to threading issues when running 'mvn test'
> ---------------------------------------------------------------
>
>                 Key: CAMEL-20291
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20291
>             Project: Camel
>          Issue Type: Test
>            Reporter: Craig Ziesman
>            Assignee: Craig Ziesman
>            Priority: Minor
>
> When running {{mvn install}} or {{{}mvn test{}}}, many Camel unit tests that are based on {{ContextTestSupport}} fail. These failures are due to threading issues that rarely occur when testing individual modules. {{{}CamelTestSupport{}}}, which is used for testing classes outside of Camel Core, uses {{ThreadLocal}} instances for the {{{}CamelContext{}}}, the {{{}ProducerTemplate{}}}, and the {{{}ConsumerTemplate{}}}. {{ContextTestSupport}} should be updated to use {{ThreadLocal}} as well. In addition, the property {{camel.surefire.reuseForks}} in {{parent/pom.xml}} should default to {{{}false{}}}. With these changes, most of the unit tests will pass.{{{}{}}}



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