test(server): the ACP process-tree test no longer collides with the runner's own pid (#17647)

Signed-off-by: Yordis Prieto <[email protected]>
This commit is contained in:
Yordis Prieto authored and GitHub committed 2026-10-09 22:26:15 -03:00
1 parent 38571328a4
commit 202b95403a
1 file changed
+4 -1
@@ -655,8 +655,11 @@ describe("terminatePosixOwnedProcessTree", () => {
it.live("rotates more than 64 live parents without scanning retained tombstones", () =>
Effect.gen(function* () {
// The server fixture's process group is the runner's real pid, so a synthetic
// parent sharing it would be skipped as the server's own group.
const parentPidBase = process.pid < 500_000 ? 500_000 : 1_000;
const parents = Array.from({ length: 130 }, (_, index) =>
identity(1_000 + index, 100, 1_000 + index, 1_000 + index),
identity(parentPidBase + index, 100, parentPidBase + index, parentPidBase + index),
);
let childListReads = 0;
let identityCalls = 0;