mirror of
https://github.com/morluto/rea.git
synced 2026-10-26 17:35:11 +00:00
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.
12 lines
447 B
TypeScript
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);
|
|
});
|
|
});
|