From 7f3162c57e5caac97a77bafa1b2690a55eb060a5 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Wed, 6 Mar 2024 15:50:24 -0700 Subject: chore(tests): fix process_test for sure (#22756) --- tests/unit_node/process_test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/unit_node/process_test.ts') 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; -- cgit v1.2.3