mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -05:00
chore(tests): fix process_test for sure (#22756)
This commit is contained in:
parent
39d9281bb9
commit
7f3162c57e
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue