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

   [CAMEL-23428](https://issues.apache.org/jira/browse/CAMEL-23428)
   
   The `RabbitMQProducerInvalidExchangeIT.testProducer` test is flaky because 
it asserts the direct cause of `CamelExecutionException` is 
`ShutdownSignalException`. However, Spring AMQP may wrap the underlying 
`ShutdownSignalException` in an `AmqpException` depending on timing, causing 
intermittent failures.
   
   **Fix:** Walk the exception cause chain to find `ShutdownSignalException` 
instead of asserting it is the direct cause. This handles both cases:
   - Direct cause: `CamelExecutionException` → `ShutdownSignalException`
   - Wrapped cause: `CamelExecutionException` → `AmqpException` → 
`ShutdownSignalException`


-- 
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