提交 25411a0b 编写于 作者: K Kohsuke Kawaguchi

Fixed a test failure

With the server-side download, the test needs to induce the update
center metadata retrieval in a separate manner.
上级 05ebd4ea
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册