[TEST] Raise shardSize parameter if number of shards is > 5

This commit is contained in:
javanna 2014-03-10 18:35:29 +01:00 committed by Luca Cavanna
parent 045e43163f
commit 48f6df3f8e
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ public class SimpleFacetsTests extends ElasticsearchIntegrationTest {
.field("foo", "" + i) .field("foo", "" + i)
.endObject()).execute().actionGet(); .endObject()).execute().actionGet();
} }
int shardSize = numberOfShards() > 5 ? 20 : 10; int shardSize = getNumShards("test").numPrimaries > 5 ? 20 : 10;
String[] execHint = new String[]{"map", null}; String[] execHint = new String[]{"map", null};
for (String hint : execHint) { for (String hint : execHint) {