perf(test): avoid bundled channel fallback in model override tests · openclaw/openclaw@b24d153
steipete
·
2026-04-22
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | import { beforeEach, describe, expect, it } from "vitest"; |
2 | 2 | import type { OpenClawConfig } from "../config/config.js"; |
3 | | -import { setActivePluginRegistry } from "../plugins/runtime.js"; |
| 3 | +import { resetPluginRuntimeStateForTest, setActivePluginRegistry } from "../plugins/runtime.js"; |
4 | 4 | import { createTestRegistry } from "../test-utils/channel-plugins.js"; |
5 | 5 | import { createSessionConversationTestRegistry } from "../test-utils/session-conversation-registry.js"; |
6 | 6 | import { resolveChannelModelOverride } from "./model-overrides.js"; |
7 | 7 | |
8 | 8 | describe("resolveChannelModelOverride", () => { |
9 | 9 | beforeEach(() => { |
| 10 | +resetPluginRuntimeStateForTest(); |
10 | 11 | setActivePluginRegistry(createSessionConversationTestRegistry()); |
11 | 12 | }); |
12 | 13 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。