stoty commented on a change in pull request #413:
URL: https://github.com/apache/curator/pull/413#discussion_r834136045
##########
File path:
curator-x-discovery-server/src/test/java/org/apache/curator/x/discovery/server/jetty_resteasy/TestStringsWithRestEasy.java
##########
@@ -65,7 +65,11 @@ public void setup() throws Exception
port = InstanceSpec.getRandomPort();
server = new Server(port);
- Context root = new Context(server, "/", Context.SESSIONS);
+ ServletContextHandler root = new
ServletContextHandler(ServletContextHandler.SESSIONS);
+ root.setContextPath("/");
+ server.setHandler(root);
Review comment:
nit:
Would be cleaner to set up the root object completely, and call setHandler
after.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]