Fix flakey getPipelineRunsStopTest
@@ -371,7 +371,7 @@ public class PipelineApiTest extends BaseTest {
@Test
public void getPipelineRunsStopTest() throws Exception {
FreeStyleProject p = j.createFreeStyleProject("p1");
- p.getBuildersList().add(new Shell("sleep 60"));
+ p.getBuildersList().add(new Shell("sleep 600000"));
FreeStyleBuild b = p.scheduleBuild2(0).waitForStart();
//wait till its running
@@ -379,7 +379,7 @@ public class PipelineApiTest extends BaseTest {
Thread.sleep(10); //sleep for 10ms
}while(b.hasntStartedYet());
- Map resp = put("/organizations/jenkins/pipelines/p1/runs/"+b.getId()+"/stop/?blocking=true&timeOutInSecs=2", Map.class);
+ Map resp = put("/organizations/jenkins/pipelines/p1/runs/"+b.getId()+"/stop/?blocking=true", Map.class);
assertEquals("ABORTED", resp.get("result"));
}
