Skip to content

Commit bc65b3a

Browse files
committed
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
1 parent 0fe4d5d commit bc65b3a

File tree

1 file changed

+2
-2
lines changed
  • x-pack/plugin/ccr/src/internalClusterTest/java/org/elasticsearch/xpack/ccr

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public void testAutoFollow() throws Exception {
7979
createLeaderIndex("metrics-201901", leaderIndexSettings);
8080

8181
createLeaderIndex("logs-201901", leaderIndexSettings);
82-
assertBusy(() -> {
82+
assertLongBusy(() -> {
8383
IndicesExistsRequest request = new IndicesExistsRequest("copy-logs-201901");
8484
assertTrue(followerClient().admin().indices().exists(request).actionGet().isExists());
8585
});
@@ -262,7 +262,7 @@ public void testAutoFollowParameterAreDelegated() throws Exception {
262262
assertTrue(followerClient().execute(PutAutoFollowPatternAction.INSTANCE, request).actionGet().isAcknowledged());
263263

264264
createLeaderIndex("logs-201901", leaderIndexSettings);
265-
assertBusy(() -> {
265+
assertLongBusy(() -> {
266266
FollowInfoAction.Request followInfoRequest = new FollowInfoAction.Request();
267267
followInfoRequest.setFollowerIndices("copy-logs-201901");
268268
FollowInfoAction.Response followInfoResponse;

0 commit comments

Comments
 (0)