Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #55 from fcojfernandez/JENKINS-49201
[JENKINS-49201] Preventing errors when the "doDelete" form is submitted in test execution
  • Loading branch information
olivergondza committed Jan 30, 2018
2 parents 8dc7208 + 2e33f1a commit 9d48c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/java/hudson/matrix/MatrixProjectTest.java
Expand Up @@ -587,7 +587,7 @@ public void deletedLockedParentBuild() throws Exception {

assertThat(deletePage.getWebResponse().getContentAsString(), containsString("Warning: #3 depends on this."));

j.submit(deletePage.getForms().get(1));
j.submit(deletePage.getForms().get(deletePage.getForms().size() - 1));
assertEquals(2, p.getBuilds().size());

// Code delete
Expand Down Expand Up @@ -622,7 +622,7 @@ public void deletedLockedChildrenBuild() throws Exception {

assertThat(deletePage.getWebResponse().getContentAsString(), containsString("Warning: #3 depends on this."));

j.submit(deletePage.getForms().get(1));
j.submit(deletePage.getForms().get(deletePage.getForms().size() - 1));
assertEquals(1, c.getBuilds().size());

// Code delete
Expand Down

0 comments on commit 9d48c41

Please sign in to comment.