gnodet opened a new pull request, #22977:
URL: https://github.com/apache/camel/pull/22977

   [CAMEL-23429](https://issues.apache.org/jira/browse/CAMEL-23429)
   
   The `TimerRouteAutoConfigIT.testOverrideMetricsName` test is flaky because 
it waits for **any** log record from the `LoggingMetricExporter`, then 
immediately asserts that metric "A" is present. However, the first export batch 
(at 300ms interval) may not include the "A" metric if the route hasn't finished 
processing yet.
   
   **Fix:** Move the entire metric assertion inside `await().untilAsserted()` 
with a 5-second timeout, so the test keeps polling until metric "A" actually 
appears in the exported data rather than failing on the first export batch.
   
   _Claude Code on behalf of Guillaume Nodet_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to