Skip to content

Commit

Permalink
test: update tests to keep coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Mykola Rudyk <[email protected]>
  • Loading branch information
m-rudyk committed Feb 14, 2024
1 parent f5e3ecd commit c9ce786
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/java/com/lpvs/service/LPVSQueueServiceTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,12 @@ public void testProcessWebHook__NoPRDownloaded() throws IOException {
verifyNoMoreInteractions(mockGitHubService);
verifyNoMoreInteractions(mockDetectService);
verifyNoMoreInteractions(mockLicenseService);

// test when max attempts reached
webhookConfig.setAttempts(maxAttempts);
queueService.processWebHook(webhookConfig);

verify(mockGitHubService, times(2)).getPullRequestFiles(webhookConfig);
}
}

Expand Down

0 comments on commit c9ce786

Please sign in to comment.