diff --git a/src/test/java/org/jenkinsci/plugins/jiraext/view/AddLabelToFieldTest.java b/src/test/java/org/jenkinsci/plugins/jiraext/view/AddLabelToFieldTest.java index 1e40ca2..97f1bf3 100644 --- a/src/test/java/org/jenkinsci/plugins/jiraext/view/AddLabelToFieldTest.java +++ b/src/test/java/org/jenkinsci/plugins/jiraext/view/AddLabelToFieldTest.java @@ -116,6 +116,7 @@ public void testResiliency() jiraCommits.add(new JiraCommit("SSD-102", MockChangeLogUtil.mockChangeLogSetEntry("Test Comment"))); doThrow(new RuntimeException("Issue is invalid")) .when(jiraClientSvc).addLabelToField(eq("SSD-101"), eq("CustomField_123"), eq("Completed")); + doNothing().when(jiraClientSvc).addLabelToField("SSD-102", "CustomField_123", "Completed"); addLabelToField.perform(jiraCommits, mockBuild, mock(Launcher.class), new StreamBuildListener(System.out, Charset.defaultCharset())); verify(jiraClientSvc, times(1)).addLabelToField(eq("SSD-101"), eq("CustomField_123"), eq("Completed")); verify(jiraClientSvc, times(1)).addLabelToField(eq("SSD-102"), eq("CustomField_123"), eq("Completed"));