Skip to content

Commit

Permalink
Merge pull request #33 from jenkinsci/JENKINS-26137-no-pickle-factories
Browse files Browse the repository at this point in the history
Make a test involving Jenkins restart pass
Originally-Committed-As: 9186a512e4ecf901217bc3f4b219810322e84db9
  • Loading branch information
jglick committed Jan 14, 2015
2 parents ec779e6 + 89c28b4 commit 963cfbe
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -28,7 +28,6 @@
import org.jenkinsci.plugins.workflow.job.WorkflowJob;
import org.jenkinsci.plugins.workflow.job.WorkflowRun;
import org.jenkinsci.plugins.workflow.test.steps.SemaphoreStep;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.Rule;
import org.junit.runners.model.Statement;
Expand All @@ -48,7 +47,6 @@ public class PushdStepTest {
});
}

@Ignore("TODO as per JENKINS-26149 PushdStep.Execution.step might need to be optional=true, but cannot get this test to pass because of JENKINS-26137")
@Test public void restarting() {
story.addStep(new Statement() {
@Override public void evaluate() throws Throwable {
Expand All @@ -62,6 +60,9 @@ public class PushdStepTest {
@Override public void evaluate() throws Throwable {
SemaphoreStep.success("restarting/1", null);
WorkflowRun b = story.j.jenkins.getItemByFullName("p", WorkflowJob.class).getLastBuild();
while (b.isBuilding()) { // TODO JENKINS-26399
Thread.sleep(100);
}
story.j.assertLogContains("/subdir", story.j.assertBuildStatusSuccess(b));
}
});
Expand Down

0 comments on commit 963cfbe

Please sign in to comment.