[TEST] simplify number of data nodes in #testReplicaCorruption

This commit is contained in:
Shay Banon 2015-05-20 17:51:03 +02:00
parent a40ba3be5a
commit 1568eca962
1 changed files with 2 additions and 0 deletions

View File

@ -517,6 +517,8 @@ public class CorruptedFileTest extends ElasticsearchIntegrationTest {
public void testReplicaCorruption() throws Exception {
int numDocs = scaledRandomIntBetween(100, 1000);
internalCluster().ensureAtLeastNumDataNodes(2);
// we rely on the test to have replicas on all nodes, make sure there are too many to time out
internalCluster().ensureAtMostNumDataNodes(4);
assertAcked(prepareCreate("test").setSettings(ImmutableSettings.builder()
.put(GatewayAllocator.INDEX_RECOVERY_INITIAL_SHARDS, "one")