Increase timeout testFollowIndexMaxOperationSizeInBytes (#53014)

Replicating 1000 documents one by one (as we cap the request size at 
1 byte) can take more than 10 seconds on a slow CI.

Closes #52812
This commit is contained in:
Nhat Nguyen 2020-03-03 10:23:24 -05:00
parent 3494c73c8d
commit cad02d4a31
1 changed files with 2 additions and 2 deletions

View File

@ -606,7 +606,7 @@ public class IndexFollowingIT extends CcrIntegTestCase {
}
PutFollowAction.Request followRequest = putFollow("index1", "index2");
followRequest.getParameters().setMaxReadRequestSize(new ByteSizeValue(1, ByteSizeUnit.BYTES));
followRequest.getParameters().setMaxReadRequestSize(new ByteSizeValue(randomIntBetween(1, 1024), ByteSizeUnit.BYTES));
followerClient().execute(PutFollowAction.INSTANCE, followRequest).get();
final Map<ShardId, Long> firstBatchNumDocsPerShard = new HashMap<>();
@ -619,7 +619,7 @@ public class IndexFollowingIT extends CcrIntegTestCase {
}
}
assertBusy(assertTask(1, firstBatchNumDocsPerShard));
assertBusy(assertTask(1, firstBatchNumDocsPerShard), 60, TimeUnit.SECONDS);
for (int i = 0; i < numDocs; i++) {
assertBusy(assertExpectedDocumentRunnable(i));
}