mirror of https://github.com/apache/lucene.git
SOLR-3471: Disable tests that don't work correctly on Windows
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1340687 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d65f086baf
commit
664ab89dee
|
@ -17,6 +17,7 @@
|
||||||
package org.apache.solr.core;
|
package org.apache.solr.core;
|
||||||
|
|
||||||
import org.apache.lucene.index.IndexCommit;
|
import org.apache.lucene.index.IndexCommit;
|
||||||
|
import org.apache.lucene.util.Constants;
|
||||||
import org.apache.solr.SolrTestCaseJ4;
|
import org.apache.solr.SolrTestCaseJ4;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
@ -109,6 +110,9 @@ public class TestSolrDeletionPolicy1 extends SolrTestCaseJ4 {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCommitAge() throws InterruptedException {
|
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();
|
IndexDeletionPolicyWrapper delPolicy = h.getCore().getDeletionPolicy();
|
||||||
addDocs();
|
addDocs();
|
||||||
Map<Long, IndexCommit> commits = delPolicy.getCommits();
|
Map<Long, IndexCommit> commits = delPolicy.getCommits();
|
||||||
|
|
|
@ -24,6 +24,7 @@ import static org.junit.Assert.assertEquals;
|
||||||
import java.util.concurrent.BlockingQueue;
|
import java.util.concurrent.BlockingQueue;
|
||||||
import java.util.concurrent.LinkedBlockingQueue;
|
import java.util.concurrent.LinkedBlockingQueue;
|
||||||
|
|
||||||
|
import org.apache.lucene.util.Constants;
|
||||||
import org.apache.solr.common.util.NamedList;
|
import org.apache.solr.common.util.NamedList;
|
||||||
import org.apache.solr.core.SolrCore;
|
import org.apache.solr.core.SolrCore;
|
||||||
import org.apache.solr.core.SolrEventListener;
|
import org.apache.solr.core.SolrEventListener;
|
||||||
|
@ -62,6 +63,9 @@ public class SoftAutoCommitTest extends AbstractSolrTestCase {
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
public void createMonitor() throws Exception {
|
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();
|
SolrCore core = h.getCore();
|
||||||
|
|
||||||
updater = (DirectUpdateHandler2) core.getUpdateHandler();
|
updater = (DirectUpdateHandler2) core.getUpdateHandler();
|
||||||
|
|
Loading…
Reference in New Issue