From 1cf8ad829dd7c9c3c922530b70ae17926b8f10db Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Mon, 11 Oct 2010 21:07:11 +0000 Subject: [PATCH] trying to fix a unit test which sometimes fails on windows --- .../src/test/java/org/sonar/api/utils/HttpDownloaderTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonar-plugin-api/src/test/java/org/sonar/api/utils/HttpDownloaderTest.java b/sonar-plugin-api/src/test/java/org/sonar/api/utils/HttpDownloaderTest.java index 95c5fd39bb9..90e65e01f2b 100644 --- a/sonar-plugin-api/src/test/java/org/sonar/api/utils/HttpDownloaderTest.java +++ b/sonar-plugin-api/src/test/java/org/sonar/api/utils/HttpDownloaderTest.java @@ -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 -- 2.39.5