Browse Source

trying to fix a unit test which sometimes fails on windows

tags/2.6
simonbrandhof 13 years ago
parent
commit
1cf8ad829d

+ 2
- 1
sonar-plugin-api/src/test/java/org/sonar/api/utils/HttpDownloaderTest.java View 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

Loading…
Cancel
Save