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

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


The following commit(s) were added to refs/heads/main by this push:
     new d94c020250 Fix broken test
d94c020250 is described below

commit d94c020250e63fb6295b435111ccc36e473888b4
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 1042e4287a..c8131564c5 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