From eded69ba8ff5df5dbeb10c9996a1b591bd9ec243 Mon Sep 17 00:00:00 2001 From: Shalin Shekhar Mangar Date: Sat, 26 Nov 2016 01:01:22 +0530 Subject: [PATCH] SOLR-9433: Ignore testDeleteInstanceDirAfterCreateFailure on windows --- .../org/apache/solr/handler/admin/CoreAdminHandlerTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/solr/core/src/test/org/apache/solr/handler/admin/CoreAdminHandlerTest.java b/solr/core/src/test/org/apache/solr/handler/admin/CoreAdminHandlerTest.java index 8d2156d980f..1a596ab3027 100644 --- a/solr/core/src/test/org/apache/solr/handler/admin/CoreAdminHandlerTest.java +++ b/solr/core/src/test/org/apache/solr/handler/admin/CoreAdminHandlerTest.java @@ -25,6 +25,7 @@ import java.util.Map; import com.carrotsearch.randomizedtesting.rules.SystemPropertiesRestoreRule; import org.apache.commons.io.FileUtils; +import org.apache.lucene.util.Constants; import org.apache.solr.SolrTestCaseJ4; import org.apache.solr.client.solrj.embedded.JettySolrRunner; import org.apache.solr.client.solrj.impl.HttpSolrClient; @@ -283,6 +284,7 @@ public class CoreAdminHandlerTest extends SolrTestCaseJ4 { @Test public void testDeleteInstanceDirAfterCreateFailure() throws Exception { + assumeFalse("Ignore test on windows because it does not delete data directory immediately after unload", Constants.WINDOWS); File solrHomeDirectory = new File(initCoreDataDir, getClass().getName() + "-corex-" + System.nanoTime()); solrHomeDirectory.mkdirs();