From 946f6319c863ee57939345136fa327fdab2b36d6 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 13 Oct 2011 11:22:23 +0200 Subject: Fix HttpDownloaderTest on Windows --- .../src/test/java/org/sonar/api/utils/HttpDownloaderTest.java | 7 ++++--- 1 file 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 -- cgit v1.2.3