From: Pierre Date: Wed, 4 Jan 2023 14:24:56 +0000 (+0100) Subject: NO-JIRA fix CustomDns unit test X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2966a5c3688074c4850085c5f85960db9cb03b5b;p=sonarqube.git NO-JIRA fix CustomDns unit test --- diff --git a/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCustomDnsTest.java b/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCustomDnsTest.java index 292144f03a9..cdd2828ce4c 100644 --- a/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCustomDnsTest.java +++ b/server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCustomDnsTest.java @@ -108,7 +108,7 @@ public class WebhookCustomDnsTest { when(networkInterfaceProvider.getNetworkInterfaceAddresses()) .thenThrow(new SocketException()); - Assertions.assertThatThrownBy(() -> underTest.lookup("good-url.com")) + Assertions.assertThatThrownBy(() -> underTest.lookup("sonarsource.com")) .hasMessageContaining("Network interfaces could not be fetched.") .isInstanceOf(IllegalArgumentException.class); }