refactor(tools): remove artificial analysis ceilings

This commit is contained in:
morluto
2026-09-29 16:29:23 +08:00
parent 36aeec9586
commit 2f08c7c932
202 changed files with 2314 additions and 3072 deletions
@@ -56,7 +56,6 @@ const clients: HopperClient[] = [];
const startClient = async () => {
const client = new HopperClient({
launcher: new FixtureLauncher(),
requestTimeoutMs: 1_000,
startupTimeoutMs: 1_000,
});
clients.push(client);
@@ -147,7 +146,6 @@ describe("HopperClient protocol", () => {
["wrong_event_id", "HopperProtocolError"],
["malformed_event", "HopperProtocolError"],
["remote_error", "HopperRemoteError"],
["hang", "HopperTimeoutError"],
["exit", "HopperProcessError"],
])("projects %s as %s", async (method, expectedTag) => {
const client = await startClient();
@@ -157,12 +155,6 @@ describe("HopperClient protocol", () => {
expect(result.error._tag).toBe(expectedTag);
if (result.error._tag === "HopperRemoteError")
expect(result.error).toMatchObject({ operation: method, requestId: 2 });
if (result.error._tag === "HopperTimeoutError")
expect(result.error).toMatchObject({
operation: method,
requestId: 2,
providerState: "busy",
});
}
});
@@ -170,7 +162,6 @@ describe("HopperClient protocol", () => {
const diagnostics: HopperDiagnostic[] = [];
const client = new HopperClient({
launcher: new FixtureLauncher(),
requestTimeoutMs: 100,
startupTimeoutMs: 1_000,
onDiagnostic: (event) => diagnostics.push(event),
});