This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new 0ec4db154f Fix broken test
0ec4db154f is described below
commit 0ec4db154f708dddca9280471489c0c76c136fed
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]