test: narrow session search registry helpers · openclaw/openclaw@7e3a25f
shakkernerd
·
2026-05-10
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,7 +5,7 @@ import { afterEach, describe, expect, test } from "vitest";
|
5 | 5 | import { |
6 | 6 | addSubagentRunForTests, |
7 | 7 | resetSubagentRegistryForTests, |
8 | | -} from "../agents/subagent-registry.js"; |
| 8 | +} from "../agents/subagent-registry.test-helpers.js"; |
9 | 9 | import type { OpenClawConfig } from "../config/config.js"; |
10 | 10 | import type { SessionEntry } from "../config/sessions.js"; |
11 | 11 | import { registerAgentRunContext, resetAgentRunContextForTest } from "../infra/agent-events.js"; |
@@ -118,7 +118,7 @@ function listSingleSession(params: {
|
118 | 118 | |
119 | 119 | describe("listSessionsFromStore search", () => { |
120 | 120 | afterEach(() => { |
121 | | -resetSubagentRegistryForTests({ persist: false }); |
| 121 | +resetSubagentRegistryForTests(); |
122 | 122 | resetAgentRunContextForTest(); |
123 | 123 | }); |
124 | 124 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。