Skip to content

Commit

Permalink
CID-3008: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedlajmileanix committed Nov 15, 2024
1 parent c5df5ec commit ef66938
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package net.leanix.githubagent.services

import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import net.leanix.githubagent.client.GitHubClient
import net.leanix.githubagent.config.GitHubEnterpriseProperties
import net.leanix.githubagent.exceptions.UnableToConnectToGitHubEnterpriseException
Expand All @@ -27,8 +26,7 @@ class GitHubAuthenticationServiceTest {
githubEnterpriseProperties,
resourceLoader,
gitHubEnterpriseService,
gitHubClient,
syncLogService
gitHubClient
)

@BeforeEach
Expand Down Expand Up @@ -68,6 +66,5 @@ class GitHubAuthenticationServiceTest {
assertThrows(UnableToConnectToGitHubEnterpriseException::class.java) {
githubAuthenticationService.generateAndCacheJwtToken()
}
verify(exactly = 1) { syncLogService.sendSystemErrorLog("Failed to generate/validate JWT token") }
}
}

0 comments on commit ef66938

Please sign in to comment.