浏览代码

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
Nhat Nguyen 5 年之前
父节点
当前提交
64a5802307

+ 2 - 2
x-pack/plugin/ccr/src/internalClusterTest/java/org/elasticsearch/xpack/ccr/AutoFollowIT.java

@@ -78,7 +78,7 @@ public class AutoFollowIT extends CcrIntegTestCase {
         createLeaderIndex("metrics-201901", leaderIndexSettings);
 
         createLeaderIndex("logs-201901", leaderIndexSettings);
-        assertBusy(() -> {
+        assertLongBusy(() -> {
             assertTrue(ESIntegTestCase.indexExists("copy-logs-201901", followerClient()));
         });
         createLeaderIndex("transactions-201901", leaderIndexSettings);
@@ -252,7 +252,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;