epugh commented on code in PR #1158: URL: https://github.com/apache/solr/pull/1158#discussion_r1014396292
########## solr/core/src/test/org/apache/solr/schema/TestCloudManagedSchema.java: ########## @@ -53,12 +54,11 @@ public void test() throws Exception { QueryRequest request = new QueryRequest(params); request.setPath("/admin/cores"); int which = r.nextInt(clients.size()); - HttpSolrClient client = (HttpSolrClient) clients.get(which); - String previousBaseURL = client.getBaseURL(); - // Strip /collection1 step from baseURL - requests fail otherwise - client.setBaseURL(previousBaseURL.substring(0, previousBaseURL.lastIndexOf("/"))); - NamedList<?> namedListResponse = client.request(request); - client.setBaseURL(previousBaseURL); // Restore baseURL + + // create a client that does not have the /collection1 as part of the URL. + SolrClient rootClient = + new HttpSolrClient.Builder(buildUrl(jettys.get(which).getLocalPort())).build(); + NamedList<?> namedListResponse = rootClient.request(request); Review Comment: Done, and did the same with the `zkClient` -- 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