Skip to content

Commit 087dccd

Browse files
committed
test(qa): drop reused PID cleanup fallback
1 parent e1450f4 commit 087dccd

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎extensions/qa-lab/src/test-file-scenario-command-lifecycle.test.ts‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ describe.skipIf(process.platform === "win32")("qa scenario command real POSIX li
7272
it("settles within a bound after the leader writes its final result with inherited stdio open", async () => {
7373
const root = await mkdtemp(path.join(os.tmpdir(), "qa-command-settlement-"));
7474
const descendantPidPath = path.join(root, "descendant.pid");
75-
let descendantPid: number | undefined;
7675
spawnMock.mockImplementation((...args: Parameters<NonNullable<typeof actualSpawn.value>>) => {
7776
if (!actualSpawn.value) {
7877
throw new Error("real spawn unavailable");
@@ -102,7 +101,7 @@ describe.skipIf(process.platform === "win32")("qa scenario command real POSIX li
102101
env: process.env,
103102
timeoutMs: 5_000,
104103
});
105-
descendantPid = await waitForPidFile(descendantPidPath);
104+
await waitForPidFile(descendantPidPath);
106105
const startedAt = Date.now();
107106
const deadline = new AbortController();
108107
const result = await Promise.race([
@@ -122,9 +121,6 @@ describe.skipIf(process.platform === "win32")("qa scenario command real POSIX li
122121
stderr: "",
123122
});
124123
} finally {
125-
if (descendantPid && isProcessAlive(descendantPid)) {
126-
process.kill(descendantPid, "SIGKILL");
127-
}
128124
await rm(root, { force: true, recursive: true });
129125
}
130126
});

0 commit comments

Comments
 (0)