From 48760b6a0f26d3c3ead528706497f5f2a1c0bfa6 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 10 Jun 2024 09:07:00 +0530 Subject: [PATCH] chore(tests): status test should use 0 as an exit code too --- tests/process/spawn/status.luau | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/process/spawn/status.luau b/tests/process/spawn/status.luau index 3ee6f36..0da2d99 100644 --- a/tests/process/spawn/status.luau +++ b/tests/process/spawn/status.luau @@ -2,7 +2,7 @@ local process = require("@lune/process") -- The exit code of an child process should be correct -local randomExitCode = math.random(1, 255) +local randomExitCode = math.random(0, 255) local isOk = randomExitCode == 0 local child = process.spawn("exit", { tostring(randomExitCode) }, { shell = true }) local status = child.status()