From afb1c8d69374a646bc07ba3f259cb09e07fbc6e8 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Thu, 14 Nov 2013 21:07:07 +0000 Subject: [PATCH] SOLR-5399: fix windows test issue git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1542080 13f79535-47bb-0310-9956-ffa450edef68 --- .../handler/component/DistributedDebugComponentTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java b/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java index 381e6859c92..06df11be9a0 100644 --- a/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java +++ b/solr/core/src/test/org/apache/solr/handler/component/DistributedDebugComponentTest.java @@ -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); }