This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 3c1338f3e5 Check for parent SocketException instead of
ConnectException to make it work on different systems with different network
settings
3c1338f3e5 is described below
commit 3c1338f3e5540bd05fd6acf6404881709fb9a89a
Author: Lukas Lowinger <[email protected]>
AuthorDate: Thu Jul 9 14:46:01 2026 +0200
Check for parent SocketException instead of ConnectException to make it
work on different systems with different network settings
---
.../quarkus/component/jolokia/it/JolokiaDisableAutoStartTest.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaDisableAutoStartTest.java
b/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaDisableAutoStartTest.java
index 03cc29d16c..a6273c60ca 100644
---
a/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaDisableAutoStartTest.java
+++
b/integration-tests/jolokia/src/test/java/org/apache/camel/quarkus/component/jolokia/it/JolokiaDisableAutoStartTest.java
@@ -16,7 +16,7 @@
*/
package org.apache.camel.quarkus.component.jolokia.it;
-import java.net.ConnectException;
+import java.net.SocketException;
import java.net.SocketTimeoutException;
import java.time.Duration;
import java.util.Map;
@@ -75,7 +75,7 @@ class JolokiaDisableAutoStartTest {
// Connecting to Jolokia should not be possible
RestAssured.port = 8778;
- assertThrows(ConnectException.class, () -> {
+ assertThrows(SocketException.class, () -> {
RestAssured.get("/jolokia/")
.then()
.statusCode(204);