Skip to content

Commit 22ff311

Browse files
committed
Extend license timeout in CcrIntegTestCase (#83247)
The default of 10s is too short for some slower CI workers to apply the license on all nodes, given how many other things happen while the cluster is forming. This commit extends the timeout to a more generous 60s.
1 parent 2f5753f commit 22ff311

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/CcrIntegTestCase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public final void startClusters() throws Exception {
187187
assertBusy(() -> {
188188
ClusterService clusterService = leaderCluster.getInstance(ClusterService.class);
189189
assertNotNull(clusterService.state().metadata().custom(LicensesMetadata.TYPE));
190-
});
190+
}, 60, TimeUnit.SECONDS);
191191

192192
String address = leaderCluster.getDataNodeInstance(TransportService.class).boundAddress().publishAddress().toString();
193193
InternalTestCluster followerCluster = new InternalTestCluster(
@@ -211,7 +211,7 @@ public final void startClusters() throws Exception {
211211
assertBusy(() -> {
212212
ClusterService clusterService = followerCluster.getInstance(ClusterService.class);
213213
assertNotNull(clusterService.state().metadata().custom(LicensesMetadata.TYPE));
214-
});
214+
}, 60, TimeUnit.SECONDS);
215215
setupMasterNodeRequestsValidatorOnFollowerCluster();
216216
}
217217

0 commit comments

Comments
 (0)