This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 8.5.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push: new c44121b Fix test broken by BZ 56181 c44121b is described below commit c44121bb981bf2d75458549b24526a6a9e35969e Author: Mark Thomas <ma...@apache.org> AuthorDate: Thu Nov 26 21:10:54 2020 +0000 Fix test broken by BZ 56181 --- test/org/apache/catalina/valves/TestRemoteIpValve.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/org/apache/catalina/valves/TestRemoteIpValve.java b/test/org/apache/catalina/valves/TestRemoteIpValve.java index c1240ad..ae5783c 100644 --- a/test/org/apache/catalina/valves/TestRemoteIpValve.java +++ b/test/org/apache/catalina/valves/TestRemoteIpValve.java @@ -28,6 +28,7 @@ import org.junit.Test; import org.apache.catalina.AccessLog; import org.apache.catalina.Globals; +import org.apache.catalina.connector.Connector; import org.apache.catalina.connector.Request; import org.apache.catalina.connector.Response; @@ -92,6 +93,11 @@ public class TestRemoteIpValve { } public static class MockRequest extends Request { + + public MockRequest() { + setConnector(new Connector()); + } + @Override public void setAttribute(String name, Object value) { getCoyoteRequest().getAttributes().put(name, value); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org