Skip to content

Commit 8fa9a3f

Browse files
committed
[TEST] Increase node startup timeouts
Tests are periodically failing on CI as the wait conditions are not met. This commit increases the timeouts.
1 parent 5e4c871 commit 8fa9a3f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterConfiguration.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class ClusterConfiguration {
8888
if (seedNode == node) {
8989
return null
9090
}
91-
ant.waitfor(maxwait: '20', maxwaitunit: 'second', checkevery: '500', checkeveryunit: 'millisecond') {
91+
ant.waitfor(maxwait: '40', maxwaitunit: 'second', checkevery: '500', checkeveryunit: 'millisecond') {
9292
resourceexists {
9393
file(file: seedNode.transportPortsFile.toString())
9494
}

buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy

+1-1
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ class ClusterFormationTasks {
541541
static Task configureWaitTask(String name, Project project, List<NodeInfo> nodes, List<Task> startTasks) {
542542
Task wait = project.tasks.create(name: name, dependsOn: startTasks)
543543
wait.doLast {
544-
ant.waitfor(maxwait: '30', maxwaitunit: 'second', checkevery: '500', checkeveryunit: 'millisecond', timeoutproperty: "failed${name}") {
544+
ant.waitfor(maxwait: '60', maxwaitunit: 'second', checkevery: '500', checkeveryunit: 'millisecond', timeoutproperty: "failed${name}") {
545545
or {
546546
for (NodeInfo node : nodes) {
547547
resourceexists {

0 commit comments

Comments
 (0)