diff --git a/solr/core/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java b/solr/core/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java index 1242c3fb568..53cec4828c7 100644 --- a/solr/core/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java +++ b/solr/core/src/test/org/apache/solr/core/TestSolrDeletionPolicy1.java @@ -17,6 +17,7 @@ package org.apache.solr.core; import org.apache.lucene.index.IndexCommit; +import org.apache.lucene.util.Constants; import org.apache.solr.SolrTestCaseJ4; import org.junit.Before; import org.junit.BeforeClass; @@ -109,6 +110,9 @@ public class TestSolrDeletionPolicy1 extends SolrTestCaseJ4 { @Test public void testCommitAge() throws InterruptedException { + assumeFalse("This test is not working on Windows (or maybe machines with only 2 CPUs)", + Constants.WINDOWS); + IndexDeletionPolicyWrapper delPolicy = h.getCore().getDeletionPolicy(); addDocs(); Map commits = delPolicy.getCommits(); diff --git a/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.java b/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.java index 8c2b3591a76..221f95a692b 100644 --- a/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.java +++ b/solr/core/src/test/org/apache/solr/update/SoftAutoCommitTest.java @@ -24,6 +24,7 @@ import static org.junit.Assert.assertEquals; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; +import org.apache.lucene.util.Constants; import org.apache.solr.common.util.NamedList; import org.apache.solr.core.SolrCore; import org.apache.solr.core.SolrEventListener; @@ -62,6 +63,9 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase { @Before public void createMonitor() throws Exception { + assumeFalse("This test is not working on Windows (or maybe machines with only 2 CPUs)", + Constants.WINDOWS); + SolrCore core = h.getCore(); updater = (DirectUpdateHandler2) core.getUpdateHandler();