reduce maximum number of writes to speed up test

This commit is contained in:
Martijn van Groningen 2018-08-27 12:14:46 +07:00
parent 75304f405b
commit 47e9e72df2
No known key found for this signature in database
GPG Key ID: AB236F4FCF2AF12A
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class ShardChangesActionTests extends ESSingleNodeTestCase {
.build(); .build();
final IndexService indexService = createIndex("index", settings); final IndexService indexService = createIndex("index", settings);
final int numWrites = randomIntBetween(2, 8192); final int numWrites = randomIntBetween(2, 4096);
for (int i = 0; i < numWrites; i++) { for (int i = 0; i < numWrites; i++) {
client().prepareIndex("index", "doc", Integer.toString(i)).setSource("{}", XContentType.JSON).get(); client().prepareIndex("index", "doc", Integer.toString(i)).setSource("{}", XContentType.JSON).get();
} }