]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19690 updated test to use hostname instead of ip in order to benefit from custo...
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>
Fri, 23 Jun 2023 09:56:57 +0000 (11:56 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 26 Jun 2023 20:03:54 +0000 (20:03 +0000)
server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCallerImplTest.java

index 43b1c7bda9c38ac42688d49ead9b51b4294bc931..1c5574a99968a18130cb5a048ce6483172fa4bdf 100644 (file)
@@ -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());