From: Lukasz Jarocki Date: Fri, 23 Jun 2023 09:56:57 +0000 (+0200) Subject: SONAR-19690 updated test to use hostname instead of ip in order to benefit from custo... X-Git-Tag: 10.2.0.77647~539 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=06c318c67ce957215461cd51c696000c0dbd3003;p=sonarqube.git SONAR-19690 updated test to use hostname instead of ip in order to benefit from custom DNS --- diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCallerImplTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCallerImplTest.java index 43b1c7bda9c..1c5574a9996 100644 --- a/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCallerImplTest.java +++ b/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCallerImplTest.java @@ -250,7 +250,7 @@ public class WebhookCallerImplTest { @Test public void silently_catch_error_when_url_is_local_network_interface() throws Exception { - String url = "https://192.168.1.21"; + String url = "https://localhost"; InetAddress inetAddress = InetAddress.getByName(HttpUrl.parse(url).host());