mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 09:39:25 +00:00
test(agent): follow direct CLI transport cleanup (#143696)
This commit is contained in:
parent
5da05f85e4
commit
0614abfe2a
1 changed files with 2 additions and 2 deletions
|
|
@ -170,7 +170,7 @@ function buildCliSource(args: string[]): string {
|
|||
|
||||
describe("agent exec built runtime", () => {
|
||||
it.skipIf(process.platform === "win32")(
|
||||
"reclaims authentication-probe descendants when the CLI run times out",
|
||||
"reclaims CLI transport descendants when the run times out",
|
||||
async () => {
|
||||
const root = tempDirs.make("openclaw-agent-exec-auth-timeout-");
|
||||
const binDir = path.join(root, "bin");
|
||||
|
|
@ -254,7 +254,7 @@ if (process.argv[2] === "--version") {
|
|||
expect(result.status, result.stderr).toBe(2);
|
||||
expect(JSON.parse(result.stdout)).toMatchObject({ ok: false, status: "timeout" });
|
||||
const receipts = await readProcesses();
|
||||
expect(receipts.map(({ phase }) => phase)).toContain("auth");
|
||||
expect(receipts.map(({ phase }) => phase)).toContain("agent");
|
||||
await Promise.all(
|
||||
receipts.flatMap(({ pids }) => pids.map((pid) => waitForDead(pid, 5_000))),
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue