提交 ef474202 编写于 作者: J Jesse Glick

@RandomlyFails

上级 6fe5d6c6
......@@ -47,6 +47,7 @@ import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.RandomlyFails;
import org.mortbay.jetty.HttpConnection;
import org.mortbay.jetty.Server;
import org.mortbay.jetty.bio.SocketConnector;
......@@ -121,6 +122,7 @@ public class UpdateSiteTest {
assertEquals("Wrong name of plugin found", "Task Scanner Plug-in", tasksPlugin.getDisplayName());
}
@RandomlyFails("CertificateExpiredException: NotAfter: …")
@Test public void updateDirectlyWithJson() throws Exception {
UpdateSite us = new UpdateSite("default", new URL(baseUrl, "update-center.json").toExternalForm());
assertNull(us.getPlugin("AdaptivePlugin"));
......@@ -128,6 +130,7 @@ public class UpdateSiteTest {
assertNotNull(us.getPlugin("AdaptivePlugin"));
}
@RandomlyFails("CertificateExpiredException: NotAfter: …")
@Test public void updateDirectlyWithHtml() throws Exception {
UpdateSite us = new UpdateSite("default", new URL(baseUrl, "update-center.json.html").toExternalForm());
assertNull(us.getPlugin("AdaptivePlugin"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册