diff --git a/src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java b/src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java index b91212b9f..802cfb2e0 100644 --- a/src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java +++ b/src/test/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSourceTest.java @@ -919,10 +919,6 @@ public void testShouldRetrieveTagSCMHeadType() throws Exception { @Issue("JENKINS-65071") public void testShouldRetrieveNullEvent() throws Exception { SCMHeadObserver mockSCMHeadObserver = Mockito.mock(SCMHeadObserver.class); - Mockito.when(mockSCMHeadObserver.getIncludes()) - .thenReturn( - Collections.singleton(new GitHubTagSCMHead("non-existent-tag", System.currentTimeMillis()))); - assertTrue(this.source.shouldRetrieve(mockSCMHeadObserver, null, GitHubTagSCMHead.class)); assertTrue(this.source.shouldRetrieve(mockSCMHeadObserver, null, PullRequestSCMHead.class)); assertTrue(this.source.shouldRetrieve(mockSCMHeadObserver, null, BranchSCMHead.class));