From bc3c306b32740681f852c31f95385773af747a17 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Wed, 22 Jul 2020 08:45:01 -0400 Subject: [PATCH] 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 --- .../java/org/elasticsearch/xpack/ccr/AutoFollowIT.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x-pack/plugin/ccr/src/internalClusterTest/java/org/elasticsearch/xpack/ccr/AutoFollowIT.java b/x-pack/plugin/ccr/src/internalClusterTest/java/org/elasticsearch/xpack/ccr/AutoFollowIT.java index ca5a8d3c12537..9c55923a2cc09 100644 --- a/x-pack/plugin/ccr/src/internalClusterTest/java/org/elasticsearch/xpack/ccr/AutoFollowIT.java +++ b/x-pack/plugin/ccr/src/internalClusterTest/java/org/elasticsearch/xpack/ccr/AutoFollowIT.java @@ -79,7 +79,7 @@ public void testAutoFollow() throws Exception { 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 void testAutoFollowParameterAreDelegated() throws Exception { 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;