aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2020-01-16 15:13:46 +0100
committerSonarTech <sonartech@sonarsource.com>2020-02-20 20:46:15 +0100
commitaccb6a680a3f6d5bd6925067ba4e9f09dd3d1a57 (patch)
treeac7cf992c884a4ab37f968b272210b2ba5a05c7b /server/sonar-webserver
parente588269aa85389e14c5138a7a95ddb24ed16934d (diff)
downloadsonarqube-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.java2
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);