[
https://issues.apache.org/jira/browse/CAMEL-27281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18151407#comment-18151407
]
Claus Ibsen commented on CAMEL-27281:
-------------------------------------
The diagnostics of the last failure show the cause: the appender was stopped
and detached, and the logger back on the root config. The test classes run in
parallel, and when the test attaches its appender while another class is still
starting log4j, the appender goes to the default configuration that log4j stops
when it swaps in log4j2.properties. Fix in
https://github.com/apache/camel/pull/30866: the tests wait until log4j has
started before they attach the appender.
_Claude Code on behalf of Claus Ibsen (davsclaus)_
> Fix flaky QuartzInjectedSchedulerTest
> -------------------------------------
>
> Key: CAMEL-27281
> URL: https://issues.apache.org/jira/browse/CAMEL-27281
> Project: Camel
> Issue Type: Test
> Components: camel-quartz
> Affects Versions: 4.24.0
> Reporter: Aurélien Pupier
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> test was added [4 days ago and already was flaky 20
> times|https://develocity.apache.org/scans/tests?search.rootProjectNames=camel&search.tags=main&search.timeZoneId=Europe%2FParis&tests.container=org.apache.camel.component.quartz.QuartzInjectedSchedulerTest&tests.sortField=FLAKY&tests.test=warnsWhenPropertiesAreSetWithInjectedScheduler]
> {noformat}
> org.opentest4j.AssertionFailedError: [] ==> expected: <1> but was: <0>
> at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:740)
> at
> org.apache.camel.component.quartz.QuartzInjectedSchedulerTest.warnsWhenPropertiesAreSetWithInjectedScheduler(QuartzInjectedSchedulerTest.java:175)
>
> {noformat}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)