diff options
author | Lukasz Jarocki <lukasz.jarocki@sonarsource.com> | 2023-06-23 11:56:57 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-06-26 20:03:54 +0000 |
commit | 06c318c67ce957215461cd51c696000c0dbd3003 (patch) | |
tree | b3db3fe87c055ca1f69b48c7c8a1a580361b7b5c | |
parent | ef177c8a7c8cf2a9fe0cd8a2215df9abcb3f6514 (diff) | |
download | sonarqube-06c318c67ce957215461cd51c696000c0dbd3003.tar.gz sonarqube-06c318c67ce957215461cd51c696000c0dbd3003.zip |
SONAR-19690 updated test to use hostname instead of ip in order to benefit from custom DNS
-rw-r--r-- | server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCallerImplTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |