From 1877139e896042396a000f6e7510f6ee0d29f9ee Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Mon, 1 Jan 2018 18:03:15 -0500 Subject: [PATCH] Fix assertion in Wildfly build This commit fixes a flubbed assertion in the Wildfly build file; the intention was to assert that we have only set the value of the management port once except the assertion that the management port was equal to zero when finding a matching log line was left off. --- qa/wildfly/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/wildfly/build.gradle b/qa/wildfly/build.gradle index 50d7c4e61ec..8c6d59548b0 100644 --- a/qa/wildfly/build.gradle +++ b/qa/wildfly/build.gradle @@ -130,7 +130,7 @@ task startWildfly { // set this system property so the test runner knows the port Wildfly is listening for HTTP requests on integTestRunner.systemProperty("tests.jboss.http.port", httpPort) } else if (line.matches('.*Http management interface listening on http://.*:\\d+/management$')) { - assert managementPort + assert managementPort == 0 final int colonIndex = line.lastIndexOf(":") assert colonIndex >= 0 final int slashIndex = line.lastIndexOf("/")