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

   ## Description
   
   `JmsComponentIbmMQTest` is still flaky (CAMEL-25234), now failing with:
   
   ```
   java.lang.AssertionError: Assertion error at index 0 on mock mock://result 
with predicate: header(cheese) == 123 evaluated as: null == 123
   ```
   
   Root cause: `JmsComponentIbmMQTest` and `JmsReplyToIbmMQTest` both used 
`DEV.QUEUE.1` on the shared singleton IBM MQ broker 
(`IbmMQServiceFactory.createSingletonService()`). A consumer could receive the 
message sent by the other test (`"What is your name?"`, no `cheese` header), 
which made the mock assertion fail. The previous fix (CAMEL-21438) only waited 
for the consumer route startup and did not isolate the queues.
   
   Fix: `JmsComponentIbmMQTest` now uses `DEV.QUEUE.3`, which is defined by 
default in the IBM MQ developer image (`DEFINE QLOCAL('DEV.QUEUE.3')`, checked 
in `icr.io/ibm-messaging/mq:10.0.1.0-r1`). `JmsReplyToIbmMQTest` keeps 
`DEV.QUEUE.1` / `DEV.QUEUE.2`. All IBM MQ tests in the repository now use 
distinct queues.
   
   ## Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   ## Tracking
   
   - [x] If this is a large change, bug fix, or code improvement, I checked 
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for 
the change (usually before you start working on it).
   
   ## Apache Camel coding standards and style
   
   - [x] I checked that each commit in the pull request has a meaningful 
subject line and body.
   - [x] I have run `mvn clean install -DskipTests` locally from root folder 
and I have committed all auto-generated changes.
   
   ---
   _Claude Code is not involved; this PR was prepared by IBM Bob 2.2.1 on 
behalf of @apupier._


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