Reverse engineer anything with agents, from app behavior down to native binaries.
TypeScript agent-skillsai-agentsbinary-analysisclaude-codeclicodexcordisdecompilerdeveloper-toolsdshdsh-pluginghidrahopperllmmcpmodel-context-protocolreareverse-engineeringstatic-analysistouhou
test(process): report cleanup details on cancellation failures
morluto79d5b9a826b9
diff --git a/tests/boundary/process/processCaptureCancellationAdapters.test.ts b/tests/boundary/process/processCaptureCancellationAdapters.test.tsindex 7a7159e91..694f83409 100644--- a/tests/boundary/process/processCaptureCancellationAdapters.test.ts+++ b/tests/boundary/process/processCaptureCancellationAdapters.test.ts@@ -8,6 +8,7 @@ import { Client, InMemoryTransport } from "@modelcontextprotocol/client";import pino from "pino";import { expect, onTestFinished } from "vitest";import { z } from "zod";+import { analysisCliErrorEnvelopeSchema } from "../../../src/contracts/errorSchemas.js";import { cleanupOwnedProcessGroup } from "../../../src/process/ProcessOwnership.js";import { createServer } from "../../../src/server/createServer.js";import {@@ -124,7 +125,8 @@ itWithCaptureCapability.each(["SIGINT", "SIGTERM"] as const)(await expect(access(join(root, "late-write"))).rejects.toMatchObject({code: "ENOENT",});- expect(JSON.parse(stdout)).toMatchObject({+ const result = analysisCliErrorEnvelopeSchema.parse(JSON.parse(stdout));+ expect(result, JSON.stringify(result.details)).toMatchObject({code: "cancelled",details: { operation: "process_capture", cleanup: "complete" },});