-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAMEL-19538: Replaced Thread.sleep() in camel-mllp #14934
Conversation
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🤖 CI automation will test this PR automatically. 🐫 Apache Camel Committers, please review the following items:
|
...est/java/org/apache/camel/component/mllp/MllpTcpClientProducerIdleConnectionTimeoutTest.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are a few problems:
- Endlessly waiting in a few places
- In general we should avoid having just
pollDelay
: it's just an uglier, harder to read version of theThread.sleep
. Please look at usingatMost
oratLeast
instead.
...mllp/src/test/java/org/apache/camel/component/mllp/MllpTcpServerConsumerBindTimeoutTest.java
Outdated
Show resolved
Hide resolved
...-mllp/src/test/java/org/apache/camel/component/mllp/MllpTcpServerConsumerConnectionTest.java
Outdated
Show resolved
Hide resolved
components/camel-mllp/src/test/java/org/apache/camel/test/tcp/JavaSocketManualTests.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a few more things to adjust
...est/java/org/apache/camel/component/mllp/MllpTcpClientProducerIdleConnectionTimeoutTest.java
Show resolved
Hide resolved
...mllp/src/test/java/org/apache/camel/component/mllp/MllpTcpServerConsumerBindTimeoutTest.java
Outdated
Show resolved
Hide resolved
...-mllp/src/test/java/org/apache/camel/component/mllp/MllpTcpServerConsumerConnectionTest.java
Show resolved
Hide resolved
/component-test camel-mllp Result ❌ The tests failed please check the logs |
🤖 The Apache Camel test robot will run the tests for you 👍 |
/component-tests mllp |
6ff16ae
to
f679ba4
Compare
No description provided.