Skip to content

Commit

Permalink
Mute testSplitFromOneToN and testCreateShrinkIndexToN on Windows
Browse files Browse the repository at this point in the history
Relates #34080
  • Loading branch information
droberts195 committed Sep 26, 2018
1 parent ba3ceea commit 1413ace
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.lucene.search.SortField;
import org.apache.lucene.search.SortedSetSelector;
import org.apache.lucene.search.SortedSetSortField;
import org.apache.lucene.util.Constants;
import org.elasticsearch.Version;
import org.elasticsearch.action.admin.cluster.reroute.ClusterRerouteResponse;
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
Expand Down Expand Up @@ -83,6 +84,9 @@ protected boolean forbidPrivateIndexSettings() {

@TestLogging("org.elasticsearch.index.store:DEBUG")
public void testCreateShrinkIndexToN() {

assumeFalse("https://github.com/elastic/elasticsearch/issues/34080", Constants.WINDOWS);

int[][] possibleShardSplits = new int[][] {{8,4,2}, {9, 3, 1}, {4, 2, 1}, {15,5,1}};
int[] shardSplits = randomFrom(possibleShardSplits);
assertEquals(shardSplits[0], (shardSplits[0] / shardSplits[1]) * shardSplits[1]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import org.apache.lucene.search.SortedSetSelector;
import org.apache.lucene.search.SortedSetSortField;
import org.apache.lucene.search.join.ScoreMode;
import org.apache.lucene.util.Constants;
import org.elasticsearch.Version;
import org.elasticsearch.action.admin.cluster.state.ClusterStateRequest;
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
Expand Down Expand Up @@ -91,6 +92,9 @@ public void testCreateSplitIndexToN() throws IOException {
}

public void testSplitFromOneToN() {

assumeFalse("https://github.com/elastic/elasticsearch/issues/34080", Constants.WINDOWS);

splitToN(1, 5, 10);
client().admin().indices().prepareDelete("*").get();
int randomSplit = randomIntBetween(2, 6);
Expand Down

0 comments on commit 1413ace

Please sign in to comment.