Skip to content

Commit

Permalink
[JENKINS-49201] Execute the correct form independently on the jenkins…
Browse files Browse the repository at this point in the history
… core version
  • Loading branch information
fcojfernandez committed Jan 26, 2018
1 parent 8dc7208 commit 2e33f1a
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 2e33f1a

Please sign in to comment.