test(subagents): use lightweight clears in sessions spawn suites

This commit is contained in:
Peter Steinberger
2026-02-22 08:27:29 +00:00
parent 8887f41d7d
commit c7606e7064
5 changed files with 5 additions and 5 deletions

View File

@@ -69,7 +69,7 @@ function seedDepthTwoAncestryStore(params?: { sessionIds?: boolean }) {
describe("sessions_spawn depth + child limits", () => {
beforeEach(() => {
resetSubagentRegistryForTests();
callGatewayMock.mockReset();
callGatewayMock.mockClear();
storeTemplatePath = path.join(
os.tmpdir(),
`openclaw-subagent-depth-${Date.now()}-${Math.random().toString(16).slice(2)}-{agentId}.json`,