mirror of https://github.com/apache/lucene.git
SOLR-5399: fix windows test issue
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1542080 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fd8a71b213
commit
afb1c8d693
|
@ -62,8 +62,7 @@ public class DistributedDebugComponentTest extends SolrJettyTestBase {
|
|||
}
|
||||
|
||||
private static File createSolrHome() throws Exception {
|
||||
File workDir = new File(System.getProperty("tempDir", System.getProperty("java.io.tmpdir")));
|
||||
workDir = new File(workDir, DistributedDebugComponentTest.class.getName());
|
||||
File workDir = new File(TEMP_DIR, DistributedDebugComponentTest.class.getName());
|
||||
setupJettyTestHome(workDir, "collection1");
|
||||
FileUtils.copyDirectory(new File(workDir, "collection1"), new File(workDir, "collection2"));
|
||||
return workDir;
|
||||
|
@ -71,6 +70,10 @@ public class DistributedDebugComponentTest extends SolrJettyTestBase {
|
|||
|
||||
@AfterClass
|
||||
public static void afterTest() throws Exception {
|
||||
collection1.shutdown();
|
||||
collection2.shutdown();
|
||||
jetty.stop();
|
||||
jetty=null;
|
||||
cleanUpJettyHome(solrHome);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue