mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 09:32:42 +00:00
test(core): continue reset-to-clear cleanup in subagent focus and web fetch
This commit is contained in:
@@ -74,7 +74,7 @@ describe("web_fetch SSRF protection", () => {
|
|||||||
|
|
||||||
afterEach(() => {
|
afterEach(() => {
|
||||||
global.fetch = priorFetch;
|
global.fetch = priorFetch;
|
||||||
lookupMock.mockReset();
|
lookupMock.mockClear();
|
||||||
vi.restoreAllMocks();
|
vi.restoreAllMocks();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -163,7 +163,7 @@ async function focusCodexAcpInThread(fake = createFakeThreadBindingManager()) {
|
|||||||
describe("/focus, /unfocus, /agents", () => {
|
describe("/focus, /unfocus, /agents", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
resetSubagentRegistryForTests();
|
resetSubagentRegistryForTests();
|
||||||
hoisted.callGatewayMock.mockReset();
|
hoisted.callGatewayMock.mockClear();
|
||||||
hoisted.getThreadBindingManagerMock.mockClear().mockReturnValue(null);
|
hoisted.getThreadBindingManagerMock.mockClear().mockReturnValue(null);
|
||||||
hoisted.resolveThreadBindingThreadNameMock.mockClear().mockReturnValue("🤖 codex");
|
hoisted.resolveThreadBindingThreadNameMock.mockClear().mockReturnValue("🤖 codex");
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user