This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 0dbded8166a88d4df928fb3c6af4d49fe98ca44c
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Aug 6 21:17:34 2026 +0200

    chore: Fix FtpProducerHealthCheckIT for JDK 25
    
    JDK 25 returns "Connection refused (connect failed)" instead of
    "Connection refused", use startsWith to handle both.
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../component/file/remote/integration/FtpProducerHealthCheckIT.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/integration/FtpProducerHealthCheckIT.java
 
b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/integration/FtpProducerHealthCheckIT.java
index a67c8fb6cd03..46e957aa4c42 100644
--- 
a/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/integration/FtpProducerHealthCheckIT.java
+++ 
b/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/integration/FtpProducerHealthCheckIT.java
@@ -74,7 +74,8 @@ public class FtpProducerHealthCheckIT extends 
FtpServerTestSupport {
             Assertions.assertEquals(HealthCheck.State.DOWN, r.getState());
             Assertions.assertEquals("FtpProducer is not ready", 
r.getMessage().get());
             Assertions.assertEquals(200, r.getDetails().get("ftp.code"));
-            Assertions.assertEquals("Connection refused", 
r.getDetails().get("ftp.reason"));
+            String reason = (String) r.getDetails().get("ftp.reason");
+            Assertions.assertTrue(reason.startsWith("Connection refused"), 
reason);
         });
 
     }

Reply via email to