Skip to content

Commit

Permalink
Fix JVM tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Frank committed Sep 29, 2023
1 parent 2b52fab commit da75a64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ import io.kotest.matchers.collections.shouldContain
import io.kotest.matchers.shouldBe
import io.kotest.matchers.string.shouldContain
import java.util.concurrent.TimeoutException
import kotlin.time.Duration
import kotlin.time.milliseconds
import kotlin.time.Duration.Companion.milliseconds

class EnvironmentTest : ShouldSpec({
should("return null on non-existent system variable") {
Expand Down Expand Up @@ -46,7 +45,7 @@ class EnvironmentTest : ShouldSpec({
}
should("error with timeout exception") {
val (exit, output) = Environment.executeSystemCommand(
Command(listOf("sleep", "1s")), true, Duration.milliseconds(500)
Command(listOf("sleep", "1s")), true, 500.milliseconds
)
exit shouldBe Environment.errorExitStatus
output shouldContain TimeoutException::class.java.name
Expand Down
1 change: 0 additions & 1 deletion kotlin-dsl/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ kotlin {
api(kotlin("scripting-jvm-host"))

implementation(project(":core"))
implementation(kotlin("script-util"))

runtimeOnly(kotlin("compiler-embeddable"))
runtimeOnly(kotlin("scripting-dependencies"))
Expand Down

0 comments on commit da75a64

Please sign in to comment.