]> source.dussan.org Git - sonarqube.git/commitdiff
trying to fix a unit test which sometimes fails on windows
authorsimonbrandhof <simon.brandhof@gmail.com>
Mon, 11 Oct 2010 21:07:11 +0000 (21:07 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Mon, 11 Oct 2010 21:07:11 +0000 (21:07 +0000)
sonar-plugin-api/src/test/java/org/sonar/api/utils/HttpDownloaderTest.java

index 95c5fd39bb9ec44e39881d6043f187a782c44bef..90e65e01f2b36d848b7df87c86dc11651e09eed6 100644 (file)
@@ -68,7 +68,8 @@ public class HttpDownloaderTest {
 
   @Test(expected=SonarException.class)
   public void failIfServerDown() throws URISyntaxException {
-    new HttpDownloader().download(new URI("http://localhost:13579/unknown"));
+    // I hope that the port 1 is not used !
+    new HttpDownloader().download(new URI("http://localhost:1/unknown"));
   }
 
   @Test