Skip to content

Commit f62ec0a

Browse files
authored
Removed 1 unnecessary stubbing in GitHubSCMSourceTest.java (#732)
1 parent a3028eb commit f62ec0a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -919,10 +919,6 @@ public void testShouldRetrieveTagSCMHeadType() throws Exception {
919919
@Issue("JENKINS-65071")
920920
public void testShouldRetrieveNullEvent() throws Exception {
921921
SCMHeadObserver mockSCMHeadObserver = Mockito.mock(SCMHeadObserver.class);
922-
Mockito.when(mockSCMHeadObserver.getIncludes())
923-
.thenReturn(
924-
Collections.singleton(new GitHubTagSCMHead("non-existent-tag", System.currentTimeMillis())));
925-
926922
assertTrue(this.source.shouldRetrieve(mockSCMHeadObserver, null, GitHubTagSCMHead.class));
927923
assertTrue(this.source.shouldRetrieve(mockSCMHeadObserver, null, PullRequestSCMHead.class));
928924
assertTrue(this.source.shouldRetrieve(mockSCMHeadObserver, null, BranchSCMHead.class));

0 commit comments

Comments
 (0)