test: consolidate service and process fixtures

This commit is contained in:
morluto
2026-10-08 04:03:24 +08:00
parent d88d6c1897
commit f8a53a8c06
25 changed files with 471 additions and 1176 deletions
-20
View File
@@ -104,26 +104,6 @@ describe("verifier run identity", { concurrent: false }, () => {
}
},
);
it.runIf(process.platform !== "win32")(
"bounds cleanup when a verifier child ignores SIGTERM",
async () => {
const child = spawn(
process.execPath,
[
"-e",
"process.on('SIGTERM', () => {}); process.stdout.write('ready'); setInterval(() => {}, 1000)",
],
{ stdio: ["ignore", "pipe", "ignore"] },
);
try {
await childReady(child);
} finally {
await stopChild(child);
}
expect(child.signalCode).toBe("SIGKILL");
},
);
});
const spawnReadyChild = (env: NodeJS.ProcessEnv): ChildProcess =>