Tests: Fix static bwc replicas at 1

This commit is contained in:
Ryan Ernst 2015-04-08 09:00:38 -07:00
parent f687377e2f
commit 178f650552
1 changed files with 2 additions and 2 deletions

View File

@ -106,7 +106,7 @@ public class OldIndexBackwardsCompatibilityTests extends ElasticsearchIntegratio
}
void setupCluster() throws Exception {
ListenableFuture<List<String>> replicas = internalCluster().startNodesAsync(2); // for replicas
ListenableFuture<List<String>> 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()