@RandomlyFails

This commit is contained in:
Jesse Glick committed 2014-02-26 18:42:54 -05:00
1 parent 6fe5d6c6ba
commit ef474202e5
1 file changed
+3
@@ -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"));