Skip to content

Commit

Permalink
[TEST] simplify number of data nodes in #testReplicaCorruption
Browse files Browse the repository at this point in the history
  • Loading branch information
kimchy committed May 20, 2015
1 parent a40ba3b commit 1568eca
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,8 @@ public void testCorruptFileThenSnapshotAndRestore() throws ExecutionException, I
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")
Expand Down

0 comments on commit 1568eca

Please sign in to comment.