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

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 99219227eb Fix broken test
99219227eb is described below

commit 99219227ebfad0cda695f5c877efa1d6638df237
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Nov 26 20:38:12 2025 +0000

    Fix broken test
---
 test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java 
b/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java
index bce456e0c1..42ab83829c 100644
--- a/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java
+++ b/test/org/apache/catalina/valves/TestCrawlerSessionManagerValve.java
@@ -184,6 +184,8 @@ public class TestCrawlerSessionManagerValve {
             String contextPath, String userAgent) {
         Request request = EasyMock.createMock(Request.class);
         EasyMock.expect(request.getRemoteAddr()).andReturn(ip);
+        EasyMock.expect(request.getRemoteAddr()).andReturn(ip);
+        
EasyMock.expect(request.getHost()).andReturn(simpleHostWithName(hostname));
         
EasyMock.expect(request.getHost()).andReturn(simpleHostWithName(hostname));
         
EasyMock.expect(request.getContext()).andReturn(simpleContextWithName(contextPath));
         IExpectationSetters<HttpSession> setter = 
EasyMock.expect(request.getSession(false)).andReturn(null);


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to