Files
reverse-engineering-anything/tests/boundary/providers/RizinCommandTimeout.test.ts
T
Ysopwnable 1ff705473a fix(rizin): retain interrupted command frames (#4459)
Retain received complete and unfinished Rizin command bytes with bounded UTF-8 capture, truthful completion uncertainty and exact launch provenance. Keep captures independent of cancellation, protocol and cleanup precedence; wait for bounded output settlement on exit and preserve active bytes across stdin failures.

Validated353 focused tests (one existing skip), full CI static/docs checks, real official Linux Rizin0.9.1 interruption probes, paired completed public CLI/stdio MCP tasks, and focused mutation checks. Required CI passed; exact-head Codex review reported no findings and Greptile5/5. Fault cleanup uncertainty and partial-marker ambiguity remain explicit.

Fixes #4015. Follow-up to #4227.
2026-10-16 21:08:47 +08:00

12 lines
447 B
TypeScript

import { describe, expect, it } from "vitest";
import { isRizinCommandDeadlineExpired } from "../../../src/rizin/RizinDebugSessionManager.js";
describe("Rizin command timeout semantics", () => {
it("treats zero and negative remaining time as expired", () => {
expect(isRizinCommandDeadlineExpired(1)).toBe(false);
expect(isRizinCommandDeadlineExpired(0)).toBe(true);
expect(isRizinCommandDeadlineExpired(-1)).toBe(true);
});
});