test(cli): the mid-render orphan test waits for three Chrome processes alive at once (#6489)

This commit is contained in:
Miguel Ángel
2026-10-26 22:53:12 +00:00
committed by GitHub
parent bab9ed58ad
commit 6b7d6dfb2e
@@ -103,9 +103,8 @@ it("leaves no Chrome process behind when the CLI is killed mid-render", async ()
]);
await waitForTestCondition(() => {
run.record();
return run.seen.chrome.size >= 3;
return alive(run.seen.chrome).length >= 3;
}, 60_000);
expect(alive(run.seen.chrome).length).toBeGreaterThan(0);
run.child.kill("SIGKILL");
await waitForTestCondition(() => alive(run.seen.chrome).length === 0, 30_000);
}, 120_000);