You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "rpamu-jdev (via GitHub)" <gi...@apache.org> on 2026/06/12 20:43:49 UTC
[PR] CAMEL-19517: camel-cxf - replace Thread.sleep with Awaitility in tests [camel]
rpamu-jdev opened a new pull request, #23999:
URL: https://github.com/apache/camel/pull/23999
# Description
Replaces test-synchronization `Thread.sleep` calls in `camel-cxf` tests with [Awaitility](https://github.com/awaitility/awaitility), per the project guideline in AGENTS.md.
- `CxfOneWayRouteTest`: polling `while`-loop → `await().untilTrue(AtomicBoolean)`
- `CxfPayloadProviderRouterTest`: `Thread.sleep(3000)` → `await().untilAsserted(...)` on `implementor.getInvocationCount()`
- `CxfMessageHeadersRelayTest`: removed two stray unused `Thread.sleep(5000)` calls
- `camel-cxf-spring-soap/pom.xml`: added `org.awaitility:awaitility` test dependency
Remaining `Thread.sleep` calls (in `GreeterImplWithSleep`, `CxfConsumerContinuationTimeoutTest`, the `*ClientDisconnected` tests, `MyProcessor`) are intentionally left — they simulate slow business logic the tests exercise, not test synchronization.
Verified locally:
`mvn test -pl components/camel-cxf/camel-cxf-spring-soap -Dtest="CxfOneWayRouteTest,CxfPayloadProviderRouterTest,CxfMessageHeadersRelayTest"` → 26 passed, 0 failed.
JIRA: [CAMEL-19517](https://issues.apache.org/jira/browse/CAMEL-19517)
# 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-19517) filed for the change.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-19517: camel-cxf - replace Thread.sleep with Awaitility in tests [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #23999:
URL: https://github.com/apache/camel/pull/23999
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-19517: camel-cxf - replace Thread.sleep with Awaitility in tests [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23999:
URL: https://github.com/apache/camel/pull/23999#issuecomment-4697674752
<!-- ci-tested-modules -->
:test_tube: **CI tested the following changed modules:**
- `components/camel-cxf/camel-cxf-spring-soap`
:white_check_mark: **POM dependency changes: targeted tests included**
<details><summary>Modules affected by dependency changes (1)</summary>
- `:camel-cxf-spring-soap`
</details>
<details><summary>All tested modules (8 modules)</summary>
- Camel :: CXF :: SOAP :: Spring
- Camel :: JBang :: MCP
- Camel :: JBang :: Plugin :: Route Parser
- Camel :: JBang :: Plugin :: TUI
- Camel :: JBang :: Plugin :: Validate
- Camel :: Launcher :: Container
- Camel :: YAML DSL :: Validator
- Camel :: YAML DSL :: Validator Maven Plugin
</details>
---
:gear: [View full build and test results](https://github.com/apache/camel/actions/runs/27441947446)
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-19517: camel-cxf - replace Thread.sleep with Awaitility in tests [camel]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23999:
URL: https://github.com/apache/camel/pull/23999#issuecomment-4697612171
:star2: Thank you for your contribution to the Apache Camel project! :star2:
:robot: CI automation will test this PR automatically.
:camel: Apache Camel Committers, please review the following items:
* First-time contributors **require MANUAL approval** for the GitHub Actions to run
* You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
* You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
* Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
:warning: Be careful when sharing logs. Review their contents before sharing them publicly.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org