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.
This commit is contained in:
Jason Tedor 2018-01-01 18:03:15 -05:00
parent 876b16e75a
commit 1877139e89
1 changed files with 1 additions and 1 deletions

View File

@ -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("/")