Increase timeout in AutoFollowIT (#60004)

It can take more than 10 seconds to auto-follow and create a follow-task
on a slow CI. This commit increases timeout in AutoFollowIT by replacing
assertBusy with assertLongBusy.

Closes #59952
This commit is contained in:
Nhat Nguyen 2020-07-22 08:45:01 -04:00
parent 0fe4d5df67
commit bc65b3a590
1 changed files with 2 additions and 2 deletions

View File

@ -79,7 +79,7 @@ public class AutoFollowIT extends CcrIntegTestCase {
createLeaderIndex("metrics-201901", leaderIndexSettings);
createLeaderIndex("logs-201901", leaderIndexSettings);
assertBusy(() -> {
assertLongBusy(() -> {
IndicesExistsRequest request = new IndicesExistsRequest("copy-logs-201901");
assertTrue(followerClient().admin().indices().exists(request).actionGet().isExists());
});
@ -262,7 +262,7 @@ public class AutoFollowIT extends CcrIntegTestCase {
assertTrue(followerClient().execute(PutAutoFollowPatternAction.INSTANCE, request).actionGet().isAcknowledged());
createLeaderIndex("logs-201901", leaderIndexSettings);
assertBusy(() -> {
assertLongBusy(() -> {
FollowInfoAction.Request followInfoRequest = new FollowInfoAction.Request();
followInfoRequest.setFollowerIndices("copy-logs-201901");
FollowInfoAction.Response followInfoResponse;