mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 12:50:43 +00:00
test: narrow session search registry helpers
This commit is contained in:
@@ -5,7 +5,7 @@ import { afterEach, describe, expect, test } from "vitest";
|
||||
import {
|
||||
addSubagentRunForTests,
|
||||
resetSubagentRegistryForTests,
|
||||
} from "../agents/subagent-registry.js";
|
||||
} from "../agents/subagent-registry.test-helpers.js";
|
||||
import type { OpenClawConfig } from "../config/config.js";
|
||||
import type { SessionEntry } from "../config/sessions.js";
|
||||
import { registerAgentRunContext, resetAgentRunContextForTest } from "../infra/agent-events.js";
|
||||
@@ -118,7 +118,7 @@ function listSingleSession(params: {
|
||||
|
||||
describe("listSessionsFromStore search", () => {
|
||||
afterEach(() => {
|
||||
resetSubagentRegistryForTests({ persist: false });
|
||||
resetSubagentRegistryForTests();
|
||||
resetAgentRunContextForTest();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user