diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2011-10-13 11:22:23 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2011-10-13 11:22:23 +0200 |
commit | 946f6319c863ee57939345136fa327fdab2b36d6 (patch) | |
tree | 6b06358b573d9097fe994de86652c11a908f4aa5 | |
parent | 53d0cab8c9c2d4666c39c65e532f7e900f34d3be (diff) | |
download | sonarqube-946f6319c863ee57939345136fa327fdab2b36d6.tar.gz sonarqube-946f6319c863ee57939345136fa327fdab2b36d6.zip |
Fix HttpDownloaderTest on Windows
-rw-r--r-- | sonar-plugin-api/src/test/java/org/sonar/api/utils/HttpDownloaderTest.java | 7 |
1 files changed, 4 insertions, 3 deletions
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 d0fcc390dea..5c2ef1c3eb3 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 @@ -24,7 +24,6 @@ import org.apache.commons.io.IOUtils; import org.apache.commons.lang.SystemUtils; import org.junit.AfterClass; import org.junit.BeforeClass; -import org.junit.Ignore; import org.junit.Test; import org.mortbay.jetty.testing.ServletTester; import org.sonar.api.config.Settings; @@ -155,8 +154,10 @@ public class HttpDownloaderTest { We'll have to check if Jetty 7 resolves this toString() issue. */ - Thread.sleep(1000); - tester.stop(); + if (tester != null) { + Thread.sleep(1000); + tester.stop(); + } } @Test |