Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch committed Oct 4, 2023
1 parent e507f74 commit c484f84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/test/kotlin/io/snyk/plugin/cli/PlatformTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class PlatformTest {
fun testDetectPlatformException() {
val properties = Properties()
properties["os.name"] = "Not supported CPU type"
properties["os.arch"] = "dont care"

Platform.detect(properties)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ class CliDownloaderServiceIntegTest : LightPlatformTestCase() {

every { downloader.calculateSha256(any()) } returns "wrong-sha"
justRun { errorHandler.handleChecksumVerificationException(any(), any(), any()) }
// this is needed, but I don't know why the config is not picked up from setUp()
every { pluginSettings() } returns SnykApplicationSettingsStateService()

cutSpy.downloadLatestRelease(indicator, project)

Expand Down

0 comments on commit c484f84

Please sign in to comment.