perf: reduce hotspot test startup and timeout costs

This commit is contained in:
Peter Steinberger
2026-02-13 20:02:53 +00:00
parent 31537c669a
commit 6442512954
6 changed files with 93 additions and 95 deletions

View File

@@ -146,7 +146,7 @@ describe("exec tool backgrounding", () => {
});
it("uses default timeout when timeout is omitted", async () => {
const customBash = createExecTool({ timeoutSec: 1, backgroundMs: 10 });
const customBash = createExecTool({ timeoutSec: 0.2, backgroundMs: 10 });
const customProcess = createProcessTool();
const result = await customBash.execute("call1", {
@@ -165,7 +165,7 @@ describe("exec tool backgrounding", () => {
});
status = (poll.details as { status: string }).status;
if (status === "running") {
await sleep(50);
await sleep(20);
}
}