test: avoid bundled channel cold loads in message tool tests · openclaw/openclaw@2df7ec5
steipete
·
2026-05-06
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -143,6 +143,12 @@ vi.mock("../../cli/command-secret-targets.js", () => ({
|
143 | 143 | getScopedChannelsCommandSecretTargets: mocks.getScopedChannelsCommandSecretTargets, |
144 | 144 | })); |
145 | 145 | |
| 146 | +vi.mock("../../channels/plugins/message-tool-api.js", () => ({ |
| 147 | +resolveBundledChannelMessageToolDiscoveryAdapter: () => ({ |
| 148 | +describeMessageTool: () => ({ actions: ["send"], capabilities: [] }), |
| 149 | +}), |
| 150 | +})); |
| 151 | + |
146 | 152 | vi.mock("./agents-list-tool.js", () => ({ |
147 | 153 | createAgentsListTool: () => openClawToolsFactoryMocks.tool("agents"), |
148 | 154 | })); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。