You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by rs...@apache.org on 2025/06/04 19:30:07 UTC

(httpcomponents-client) branch master updated: TestHttpRoute: Fix Windows compatibility

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

rschmitt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/httpcomponents-client.git


The following commit(s) were added to refs/heads/master by this push:
     new c65eb9bec TestHttpRoute: Fix Windows compatibility
c65eb9bec is described below

commit c65eb9bec60d3f0c024d3b461520c53fec7e57bb
Author: Ryan Schmitt <rs...@apache.org>
AuthorDate: Wed Jun 4 11:02:49 2025 -0700

    TestHttpRoute: Fix Windows compatibility
---
 httpclient5/src/test/java/org/apache/hc/client5/http/TestHttpRoute.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/httpclient5/src/test/java/org/apache/hc/client5/http/TestHttpRoute.java b/httpclient5/src/test/java/org/apache/hc/client5/http/TestHttpRoute.java
index 35d49354e..1281f4e60 100644
--- a/httpclient5/src/test/java/org/apache/hc/client5/http/TestHttpRoute.java
+++ b/httpclient5/src/test/java/org/apache/hc/client5/http/TestHttpRoute.java
@@ -466,7 +466,7 @@ void testUnixDomainSocketModeling() {
         Assertions.assertEquals(uds1, route1.getUnixDomainSocket());
         Assertions.assertEquals(1, route1.getHopCount(), "A UDS is not considered a proxy hop");
         Assertions.assertNull(route1.getProxyHost(), "A UDS is not considered a proxy for routing purposes");
-        Assertions.assertEquals("/var/run/docker.sock->{}->[http://target1.test.invalid:80]", route1.toString());
+        Assertions.assertEquals(String.format("%s->{}->[http://target1.test.invalid:80]", uds1), route1.toString());
 
         final Path uds2 = Paths.get("/var/run/docker.sock");
         final HttpRoute route2 = new HttpRoute(TARGET1, null, null, Collections.emptyList(), uds2, false,