test(core): reduce mock reset overhead in targeted suites

This commit is contained in:
Peter Steinberger
2026-02-22 08:40:24 +00:00
parent 2a66c8d676
commit ccc00d874c
8 changed files with 19 additions and 12 deletions

View File

@@ -337,7 +337,7 @@ describe("abort detection", () => {
});
it("cascade stop traverses ended depth-1 parents to stop active depth-2 children", async () => {
subagentRegistryMocks.listSubagentRunsForRequester.mockReset();
subagentRegistryMocks.listSubagentRunsForRequester.mockClear();
subagentRegistryMocks.markSubagentRunTerminated.mockClear();
const root = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-abort-"));
const storePath = path.join(root, "sessions.json");