From 25411a0bed083242f2d73dfee4de7bb6e642251d Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Fri, 27 Feb 2015 15:09:39 -0800 Subject: [PATCH] Fixed a test failure With the server-side download, the test needs to induce the update center metadata retrieval in a separate manner. --- test/src/test/groovy/hudson/model/UpdateCenter2Test.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/src/test/groovy/hudson/model/UpdateCenter2Test.groovy b/test/src/test/groovy/hudson/model/UpdateCenter2Test.groovy index 6a1a5ad66e..f0b8f8a01f 100644 --- a/test/src/test/groovy/hudson/model/UpdateCenter2Test.groovy +++ b/test/src/test/groovy/hudson/model/UpdateCenter2Test.groovy @@ -46,7 +46,7 @@ public class UpdateCenter2Test { @RandomlyFails("SocketTimeoutException from goTo due to GET http://localhost:…/update-center.json?…") @Test void install() { UpdateSite.neverUpdate = false; - j.createWebClient().goTo("") // load the metadata + j.jenkins.pluginManager.doCheckUpdatesServer(); // load the metadata def job = j.jenkins.updateCenter.getPlugin("changelog-history").deploy().get(); // this seems like one of the smallest plugin println job.status; assertTrue(job.status instanceof Success)