]> source.dussan.org Git - sonarqube.git/commitdiff
NO-JIRA fix CustomDns unit test
authorPierre <pierre.guillot@sonarsource.com>
Wed, 4 Jan 2023 14:24:56 +0000 (15:24 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 5 Jan 2023 20:02:57 +0000 (20:02 +0000)
server/sonar-server-common/src/test/java/org/sonar/server/webhook/WebhookCustomDnsTest.java

index 292144f03a9a9d3b3a694579547d8689e6e0c3b7..cdd2828ce4c25b082cee6e4020f65a06eacf63e3 100644 (file)
@@ -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);
   }