dsmiley commented on code in PR #1218: URL: https://github.com/apache/solr/pull/1218#discussion_r1097739481
########## solr/solrj/src/test/org/apache/solr/client/solrj/request/SolrPingTest.java: ########## @@ -31,18 +30,18 @@ public class SolrPingTest extends EmbeddedSolrServerTestBase { @BeforeClass public static void beforeClass() throws Exception { - File testHome = createTempDir().toFile(); - FileUtils.copyDirectory(getFile("solrj/solr"), testHome); - initCore("solrconfig.xml", "schema.xml", testHome.getAbsolutePath(), "collection1"); + solrClientTestRule.startSolr(SolrTestCaseJ4.getFile("solrj/solr").toPath()); + + SolrTestCaseJ4.newRandomConfig(); + solrClientTestRule.newCollection().withConfigSet("../collection1").create(); Review Comment: I concur that "I don't think that I see this normally". But hey why not? Your example looks nicer but it only applies to a well-known config. Here in the SolrJ module, there are configSets in its own module that some tests use. Would you propose creating a SolrJExternalPaths.COLLECTION1? _Meh_. -- 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