From 06c318c67ce957215461cd51c696000c0dbd3003 Mon Sep 17 00:00:00 2001 From: Lukasz Jarocki Date: Fri, 23 Jun 2023 11:56:57 +0200 Subject: SONAR-19690 updated test to use hostname instead of ip in order to benefit from custom DNS --- .../src/test/java/org/sonar/server/webhook/WebhookCallerImplTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- cgit v1.2.3