From 23598e0e3acd7072f0f5cd874ae0d2163e614aa7 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Mon, 23 Feb 2026 05:06:27 +0000 Subject: [PATCH] test: prune redundant abort case and speed stream cap test --- src/agents/bash-tools.exec.background-abort.test.ts | 8 -------- src/agents/tools/web-tools.fetch.test.ts | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/agents/bash-tools.exec.background-abort.test.ts b/src/agents/bash-tools.exec.background-abort.test.ts index 71faf23b6..5c8251770 100644 --- a/src/agents/bash-tools.exec.background-abort.test.ts +++ b/src/agents/bash-tools.exec.background-abort.test.ts @@ -171,14 +171,6 @@ test("background exec without explicit timeout ignores default timeout", async ( cleanupRunningSession(sessionId); }); -test("yielded background exec is not killed when tool signal aborts", async () => { - const tool = createTestExecTool({ allowBackground: true, backgroundMs: 10 }); - await expectBackgroundSessionSurvivesAbort({ - tool, - executeParams: { command: BACKGROUND_HOLD_CMD, yieldMs: 5 }, - }); -}); - test("yielded background exec still times out", async () => { const tool = createTestExecTool({ allowBackground: true, backgroundMs: 10 }); await expectBackgroundSessionTimesOut({ diff --git a/src/agents/tools/web-tools.fetch.test.ts b/src/agents/tools/web-tools.fetch.test.ts index df82a2ae2..0c69e1e17 100644 --- a/src/agents/tools/web-tools.fetch.test.ts +++ b/src/agents/tools/web-tools.fetch.test.ts @@ -248,7 +248,7 @@ describe("web_fetch extraction fallbacks", () => { global.fetch = withFetchPreconnect(fetchSpy); const tool = createFetchTool({ - maxResponseBytes: 1024, + maxResponseBytes: 128, firecrawl: { enabled: false }, }); const result = await tool?.execute?.("call", { url: "https://example.com/stream" });