gnodet opened a new pull request, #22093:
URL: https://github.com/apache/camel/pull/22093
## Summary
- Fix flaky `HazelcastQueueConsumerPollTest.add()` test that was producing
67 messages instead of the expected 1
- Root cause: `when(queue.poll(...)).thenReturn("foo")` returns `"foo"` on
every call, so the consumer keeps polling and creating exchanges
- Fix: chain `.thenReturn(null)` so only the first poll returns data,
matching real queue behavior
- Re-enable the test on CI by removing `@DisabledIfSystemProperty`
## Test plan
- [x] Verified fix with 5 consecutive local runs, all passed
- [x] `mvn test -B -pl components/camel-hazelcast
-Dtest=HazelcastQueueConsumerPollTest`
Co-Authored-By: Claude Opus 4.6 <[email protected]>
--
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]