修正容器进程组清理断言
Project CI / Repository checks (push) Successful in 1m10s
Project CI / Native shell tests (push) Failing after 6m32s
Project CI / Backend tests (push) Successful in 4m20s
Project CI / Frontend tests (push) Successful in 3m29s

使用可执行成员语义校验Linux进程组已停止
避免容器孤儿僵尸让signal探活断言误报失败
This commit is contained in:
2026-08-03 15:35:47 +08:00
parent 04a6be5c3d
commit 9450377693
@@ -5,7 +5,11 @@ import { join } from 'node:path';
import { describe, expect, test, vi } from 'vitest';
import { spawnChild, terminateChildTree } from '../scripts/start-dev-stack.mjs';
import {
isProcessGroupAlive,
spawnChild,
terminateChildTree,
} from '../scripts/start-dev-stack.mjs';
import {
buildTauriArguments,
runTauriDev,
@@ -200,7 +204,7 @@ describe('AI 游戏创作 Tauri dev 生命周期', () => {
});
expect(result).toBe(42);
expect(() => process.kill(-cliChild.pid, 0)).toThrow();
expect(isProcessGroupAlive(cliChild.pid)).toBe(false);
} finally {
if (Number.isInteger(cliChild?.pid)) {
try {