From 01fc2eaf865c3333f6779dd173bba59c1b9187b2 Mon Sep 17 00:00:00 2001 From: James Baiera Date: Thu, 28 Feb 2019 13:40:20 -0500 Subject: [PATCH] Remove missing variable from error message (#39321) When test clusters are stood up, one of the steps in the wait task is to wait for ports files to appear. An exception throw was added if this were to time out instead of failing with no information, but the exception text uses a missing variable which further obfuscates the problem. --- .../org/elasticsearch/gradle/test/ClusterConfiguration.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterConfiguration.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterConfiguration.groovy index 0e039a388a08d..b4d7f83fbfca7 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterConfiguration.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterConfiguration.groovy @@ -110,7 +110,7 @@ class ClusterConfiguration { } if (ant.properties.containsKey("failed.${seedNode.transportPortsFile.path}".toString())) { throw new GradleException("Failed to locate seed node transport file [${seedNode.transportPortsFile}]: " + - "timed out waiting for it to be created after ${waitSeconds} seconds") + "timed out waiting for it to be created after 40 seconds") } return seedNode.transportUri() }