Skip to content
Permalink
Browse files
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 9d48c410e4c69e8825cd055798a862d8b374400a
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/test/java/hudson/matrix/MatrixProjectTest.java
@@ -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
@@ -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

0 comments on commit 9d48c41

Please sign in to comment.