etzel-mes commented on code in PR #28111:
URL: https://github.com/apache/camel/pull/28111#discussion_r4313634763
##########
components/camel-milo/src/test/java/org/apache/camel/component/milo/MiloClientExecutorTest.java:
##########
@@ -45,6 +46,11 @@ public class MiloClientExecutorTest extends
AbstractMiloServerTest {
= "milo-client:opc.tcp://foo:bar@localhost:@@port@@?node="
+ nodeValue(MiloServerComponent.DEFAULT_NAMESPACE_URI,
"myitem1") + "&overrideHost=true";
+ // no server listens on this port
+ private static final String MILO_CLIENT_UNREACHABLE
+ = "milo-client:opc.tcp://localhost:" +
AvailablePortFinder.getNextAvailable() + "?node="
Review Comment:
Thanks, done in 78da9a0709a. Instead of `find().getPort()`, whose `Port`
would never be released, the test holds the port as an `@RegisterExtension`
`AvailablePortFinder.Port`, as `AbstractMiloServerTest` does for the server
port. It stays reserved while the test runs.
_Claude Code on behalf of etzel-mes_
--
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]