chore(tests): fix stream test for windows

This commit is contained in:
Erica Marigold 2024-06-10 09:37:48 +05:30
parent 2a4c610b6f
commit 968a9b4f80
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1

View file

@ -12,7 +12,7 @@ assert(
) )
local echoChild = if process.os == "windows" local echoChild = if process.os == "windows"
then process.spawn("Write-Error", { msg }, { shell = "powershell" }) then process.spawn("echo", { msg, "2>&1" }, { shell = "cmd" })
else process.spawn("echo", { msg, ">>/dev/stderr" }, { shell = true }) else process.spawn("echo", { msg, ">>/dev/stderr" }, { shell = true })
assert( assert(