Skip to content

Commit

Permalink
Adapt a test for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
muzimuzhi committed Aug 25, 2024
1 parent 1fd3371 commit 1acc166
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ class EnvironmentTest : ShouldSpec({
}
should("error with timeout exception") {
val (exit, output) = Environment.executeSystemCommand(
Command(listOf("sleep", "1s")), true, 500.milliseconds
if (Environment.checkOS(Environment.SupportedOS.MACOS)) {
Command(listOf("sleep", "1"))
} else {
Command(listOf("sleep", "1s"))
},
true,
500.milliseconds
)
exit shouldBe Environment.errorExitStatus
output shouldContain TimeoutException::class.java.name
Expand Down

0 comments on commit 1acc166

Please sign in to comment.