summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2024-03-06 15:50:24 -0700
committerGitHub <noreply@github.com>2024-03-06 22:50:24 +0000
commit7f3162c57e5caac97a77bafa1b2690a55eb060a5 (patch)
treea50790cc08d90a20cf4f9a3f82bbd45cb41ea086
parent39d9281bb9359b823aa055119a21f7814e285eb4 (diff)
chore(tests): fix process_test for sure (#22756)
-rw-r--r--tests/unit_node/process_test.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit_node/process_test.ts b/tests/unit_node/process_test.ts
index da3ca7a29..a28e1e5cd 100644
--- a/tests/unit_node/process_test.ts
+++ b/tests/unit_node/process_test.ts
@@ -197,10 +197,10 @@ Deno.test({
`
import process from "node:process";
setInterval(() => {}, 1000);
- console.log("ready");
process.on("SIGINT", () => {
console.log("foo");
});
+ console.log("ready");
`,
],
stdout: "piped",
@@ -219,7 +219,7 @@ Deno.test({
while (!output.includes("ready\n")) {
await delay(10);
}
- for (const i of Array(3)) {
+ for (let i = 0; i < 3; i++) {
output = "";
process.kill("SIGINT");
wait = "foo " + i;