madrob commented on a change in pull request #589: URL: https://github.com/apache/solr/pull/589#discussion_r797773801
########## File path: solr/core/src/test/org/apache/solr/handler/admin/ThreadDumpHandlerTest.java ########## @@ -245,21 +253,18 @@ public void doTestOwnableSync(final boolean checkWaitingThreadViaPolling) throws } } - @SuppressWarnings({"unchecked"}) - private NamedList<Object> readProperties() throws Exception { + private void request(String path, Consumer<NamedList<?>> consumer) throws Exception { SolrClient client = new EmbeddedSolrServer(h.getCore()); - - NamedList<Object> properties = client.request(new GenericSolrRequest(SolrRequest.METHOD.GET, "/admin/info/threads", - new ModifiableSolrParams())); - return properties; + ModifiableSolrParams mparams = new ModifiableSolrParams(); + mparams.set("indent", true); + NamedList<?> req = client.request(new GenericSolrRequest(SolrRequest.METHOD.GET, path, mparams)); Review comment: nit: would this be response, not request? -- 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: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org