test(agents): avoid provider runtime in subagent spawn tests · openclaw/openclaw@2ea7c51
vincentkoc
·
2026-06-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -194,6 +194,10 @@ export async function loadSubagentSpawnModuleForTest(params: {
|
194 | 194 | |
195 | 195 | const resetSubagentRegistryForTests = vi.fn(); |
196 | 196 | |
| 197 | +vi.doMock("./provider-model-normalization.runtime.js", () => ({ |
| 198 | +normalizeProviderModelIdWithRuntime: () => undefined, |
| 199 | +})); |
| 200 | + |
197 | 201 | vi.doMock("./subagent-spawn.runtime.js", () => ({ |
198 | 202 | callGateway: (opts: unknown) => params.callGatewayMock(opts), |
199 | 203 | buildSubagentSystemPrompt: () => "system-prompt", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。