From 178f650552c4b45335fdfd4f43317ec2f74c2cf3 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 8 Apr 2015 09:00:38 -0700 Subject: [PATCH] Tests: Fix static bwc replicas at 1 --- .../bwcompat/OldIndexBackwardsCompatibilityTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java b/src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java index 261cbb1b2a2..bd498439fe0 100644 --- a/src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java +++ b/src/test/java/org/elasticsearch/bwcompat/OldIndexBackwardsCompatibilityTests.java @@ -106,7 +106,7 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio } void setupCluster() throws Exception { - ListenableFuture> replicas = internalCluster().startNodesAsync(2); // for replicas + ListenableFuture> replicas = internalCluster().startNodesAsync(1); // for replicas Path dataDir = newTempDirPath(LifecycleScope.SUITE); ImmutableSettings.Builder nodeSettings = ImmutableSettings.builder() @@ -300,7 +300,7 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio } void assertNewReplicasWork(String indexName) throws Exception { - final int numReplicas = randomIntBetween(1, 2); + final int numReplicas = 1; final long startTime = System.currentTimeMillis(); logger.debug("--> creating [{}] replicas for index [{}]", numReplicas, indexName); assertAcked(client().admin().indices().prepareUpdateSettings(indexName).setSettings(ImmutableSettings.builder()