mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-08 06:54:24 +00:00
test: prune redundant abort case and speed stream cap test
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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" });
|
||||
|
||||
Reference in New Issue
Block a user