fix(cli): remove ignored result limits
This commit is contained in:
@@ -163,7 +163,7 @@ describe("compiled CLI output boundary", () => {
|
||||
await writeFile(join(`${archive}.unpacked`, "main.js"), "changed();\n");
|
||||
|
||||
const result = await cli.run({
|
||||
arguments: ["--json", "inventory-artifact", archive],
|
||||
arguments: ["--json", "inspect-artifact", archive],
|
||||
});
|
||||
expect(result.exitCode).toBe(1);
|
||||
const output = JSON.stringify(result.json);
|
||||
|
||||
@@ -36,7 +36,6 @@ type FixtureMode =
|
||||
| "wrong_identity"
|
||||
| "malformed"
|
||||
| "contradictory"
|
||||
| "oversized_whitespace"
|
||||
| "future_id"
|
||||
| "analysis_timeout"
|
||||
| "remote_error"
|
||||
@@ -208,7 +207,6 @@ describe("GhidraClient", () => {
|
||||
["wrong_identity", "protocol"],
|
||||
["malformed", "protocol"],
|
||||
["contradictory", "protocol"],
|
||||
["oversized_whitespace", "protocol"],
|
||||
["future_id", "protocol"],
|
||||
["analysis_timeout", "analysis_timeout"],
|
||||
["exit", "process"],
|
||||
|
||||
Vendored
-4
@@ -143,10 +143,6 @@ const handlePing = (socket, request, state) => {
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (state.mode === "oversized_whitespace") {
|
||||
socket.write(`${" ".repeat(1024 * 1024 + 1)}\n`);
|
||||
return;
|
||||
}
|
||||
if (state.mode === "future_id") {
|
||||
socket.write(
|
||||
`${JSON.stringify({ id: request.id + 10, ok: true, result: null })}\n`,
|
||||
|
||||
Reference in New Issue
Block a user