allthingssecurity opened a new pull request, #30928: URL: https://github.com/apache/camel/pull/30928
# Description [CAMEL-27537](https://issues.apache.org/jira/browse/CAMEL-27537) Follow-up of #30915. In the review of #30915 Claus suggested two changes to `XmppConsumerStopDuringDelayedStartTest`. I pushed them to that pull request, but it was merged at the head before them, so they are not on main. This pull request adds them. It changes only the test. What changes: - The check that the connection monitor thread is gone looked at every thread of the JVM named `connectionPoll`, so a thread left by another test class in the same fork could fail this test. It now only looks at the threads of the test's CamelContext (`Camel (<name>) thread #N - connectionPoll`). - The port of the test server, which must be known before the server binds it, now comes from `AvailablePortFinder.find()` of camel-test-junit6 (registered as an extension, released after each test) instead of a port that the test probed and released itself. Tests (offline, `components/camel-xmpp` with `-am`): the camel-xmpp unit tests pass, 36 run, 0 failures, 0 errors, 5 skipped (the skipped ones are `@Disabled` on main; the Docker based IT tests were not run). `XmppConsumerStopDuringDelayedStartTest` passes 5 runs in a row, 10/10. # 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): [CAMEL-27537](https://issues.apache.org/jira/browse/CAMEL-27537). # Apache Camel coding standards and style - [x] I checked that each commit in the pull request has a meaningful subject line and body. - [ ] I have run `mvn clean install -DskipTests` locally from root folder and I have committed all auto-generated changes. (Test-only change. I built camel-xmpp and the modules it needs and ran the camel-xmpp unit tests. I did not run the full root build. No generated file changes.) # AI-assisted contributions - [x] If this PR includes AI-generated code, commits have proper co-authorship attribution (e.g., `Co-authored-by` trailers) and the PR description identifies the AI tool used. This PR was prepared with Claude Code (Claude Opus 5.5). The commit carries a `Co-Authored-By` trailer. _Claude Code on behalf of allthingssecurity_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
