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:
Robert Muir 2013-11-14 21:07:07 +00:00
parent fd8a71b213
commit afb1c8d693
1 changed files with 5 additions and 2 deletions

View File

@ -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);
}