mirror of https://github.com/openclaw/openclaw.git
test: prune redundant abort case and speed stream cap test
This commit is contained in:
parent
77c3b142a9
commit
23598e0e3a
|
|
@ -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" });
|
||||
|
|
|
|||
Loading…
Reference in New Issue