mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 21:42:27 +00:00
[FIXED HUDSON-4063] disable DownloadService during tests
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@20370 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
380238f16c
commit
163c08003e
2 files changed
+7
-1
No files matched your search
@@ -39,6 +39,7 @@ import hudson.matrix.MatrixRun;
|
||||
import hudson.maven.MavenModuleSet;
|
||||
import hudson.maven.MavenEmbedder;
|
||||
import hudson.model.Descriptor;
|
||||
import hudson.model.DownloadService;
|
||||
import hudson.model.FreeStyleProject;
|
||||
import hudson.model.Hudson;
|
||||
import hudson.model.Item;
|
||||
@@ -214,6 +215,7 @@ public abstract class HudsonTestCase extends TestCase {
|
||||
return updateCenterUrl;
|
||||
}
|
||||
});
|
||||
DownloadService.neverUpdate = true;
|
||||
|
||||
// cause all the descriptors to reload.
|
||||
// ideally we'd like to reset them to properly emulate the behavior, but that's not possible.
|
||||
@@ -249,7 +251,7 @@ public abstract class HudsonTestCase extends TestCase {
|
||||
}
|
||||
|
||||
protected void runTest() throws Throwable {
|
||||
System.out.println("=== Starting "+getName());
|
||||
System.out.println("=== Starting "+ getClass().getSimpleName() + "." + getName());
|
||||
new JavaScriptEngine(null); // ensure that ContextFactory is initialized
|
||||
Context cx= ContextFactory.getGlobal().enterContext();
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user