1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00

chore(tests): fix process_test for sure (#22756)

This commit is contained in:
Matt Mastracci 2024-03-06 15:50:24 -07:00 committed by GitHub
parent 39d9281bb9
commit 7f3162c57e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;