mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 14:44:32 +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);
|
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 () => {
|
test("yielded background exec still times out", async () => {
|
||||||
const tool = createTestExecTool({ allowBackground: true, backgroundMs: 10 });
|
const tool = createTestExecTool({ allowBackground: true, backgroundMs: 10 });
|
||||||
await expectBackgroundSessionTimesOut({
|
await expectBackgroundSessionTimesOut({
|
||||||
|
|||||||
@@ -248,7 +248,7 @@ describe("web_fetch extraction fallbacks", () => {
|
|||||||
global.fetch = withFetchPreconnect(fetchSpy);
|
global.fetch = withFetchPreconnect(fetchSpy);
|
||||||
|
|
||||||
const tool = createFetchTool({
|
const tool = createFetchTool({
|
||||||
maxResponseBytes: 1024,
|
maxResponseBytes: 128,
|
||||||
firecrawl: { enabled: false },
|
firecrawl: { enabled: false },
|
||||||
});
|
});
|
||||||
const result = await tool?.execute?.("call", { url: "https://example.com/stream" });
|
const result = await tool?.execute?.("call", { url: "https://example.com/stream" });
|
||||||
|
|||||||
Reference in New Issue
Block a user