Skip to content

Commit

Permalink
fix: Fix flank-scripts test failure on MacOS (#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotradamczyk5 authored Apr 2, 2021
1 parent c7f029f commit 0dfb03c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion flank-scripts/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ shadowJar.apply {
}
}
// <breaking change>.<feature added>.<fix/minor change>
version = "1.9.7"
version = "1.9.8"
group = "com.github.flank"

application {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package flank.scripts.ops.testartifacts

import flank.scripts.data.github.getRelease
import flank.scripts.utils.getEnv
import io.mockk.every
import io.mockk.mockkStatic
Expand All @@ -10,9 +9,9 @@ class TestArtifactsRepoTest {

@Test
fun `should not throw when gh token not set`() {
mockkStatic(::getEnv)
every { getEnv(any(), any()) } returns ""
testArtifactsRepo().getRelease("master")
?.body()?.toLong()
mockkStatic(::getEnv) {
every { getEnv(any(), any()) } returns ""
testArtifactsRepo()
}
}
}

0 comments on commit 0dfb03c

Please # to comment.