diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2020-01-16 15:13:46 +0100 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2020-02-20 20:46:15 +0100 |
commit | accb6a680a3f6d5bd6925067ba4e9f09dd3d1a57 (patch) | |
tree | ac7cf992c884a4ab37f968b272210b2ba5a05c7b /server/sonar-webserver | |
parent | e588269aa85389e14c5138a7a95ddb24ed16934d (diff) | |
download | sonarqube-accb6a680a3f6d5bd6925067ba4e9f09dd3d1a57.tar.gz sonarqube-accb6a680a3f6d5bd6925067ba4e9f09dd3d1a57.zip |
SONAR-12955 support IPv6 in cluster properties
and consistently valid adresses
Diffstat (limited to 'server/sonar-webserver')
-rw-r--r-- | server/sonar-webserver/src/test/java/org/sonar/server/app/EmbeddedTomcatTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-webserver/src/test/java/org/sonar/server/app/EmbeddedTomcatTest.java b/server/sonar-webserver/src/test/java/org/sonar/server/app/EmbeddedTomcatTest.java index e0cec4ad9ec..45252f13ca5 100644 --- a/server/sonar-webserver/src/test/java/org/sonar/server/app/EmbeddedTomcatTest.java +++ b/server/sonar-webserver/src/test/java/org/sonar/server/app/EmbeddedTomcatTest.java @@ -55,7 +55,7 @@ public class EmbeddedTomcatTest { // start server on a random port InetAddress address = InetAddress.getLoopbackAddress(); - int httpPort = NetworkUtilsImpl.INSTANCE.getNextAvailablePort(address); + int httpPort = NetworkUtilsImpl.INSTANCE.getNextLoopbackAvailablePort(); props.set("sonar.web.host", address.getHostAddress()); props.set("sonar.web.port", String.valueOf(httpPort)); EmbeddedTomcat tomcat = new EmbeddedTomcat(props); |