From e41b364407a1b11d80a60606cf61eb5954fc7111 Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Tue, 6 Aug 2024 17:49:46 +0800
Subject: [PATCH] replace getHostPath with its real address

---
 test/com/meterware/httpunit/WebClientTest.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/com/meterware/httpunit/WebClientTest.java b/test/com/meterware/httpunit/WebClientTest.java
index 08ffa0e..9a4b8a6 100644
--- a/test/com/meterware/httpunit/WebClientTest.java
+++ b/test/com/meterware/httpunit/WebClientTest.java
@@ -864,7 +864,7 @@ public class WebClientTest extends HttpUnitTest {
         defineResource( "Compressed.html", new CompressedPseudoServlet( expectedResponse, /* suppress length */ true ) );
 
         WebConversation wc = new WebConversation();
-        WebResponse wr = wc.getResponse( getHostPath() + "/Compressed.html" );
+        WebResponse wr = wc.getResponse("http://127.0.0.1:41649/Compressed.html");
         assertEquals( "Content-Encoding header", "gzip", wr.getHeaderField( "Content-encoding" ) );
         assertEquals( "Content-Type", "text/plain", wr.getContentType() );
         assertEquals( "Content", expectedResponse, wr.getText().trim() );
-- 
2.44.0

