test(plugins): clear lookup metadata memo · openclaw/openclaw@30333b2
vincentkoc
·
2026-05-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,6 +2,7 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
|
2 | 2 | import type { OpenClawConfig } from "../config/types.openclaw.js"; |
3 | 3 | import { resolveInstalledPluginIndexPolicyHash } from "./installed-plugin-index-policy.js"; |
4 | 4 | import type { PluginManifestRecord, PluginManifestRegistry } from "./manifest-registry.js"; |
| 5 | +import { clearLoadPluginMetadataSnapshotMemo } from "./plugin-metadata-snapshot.js"; |
5 | 6 | import type { PluginRegistrySnapshot } from "./plugin-registry.js"; |
6 | 7 | |
7 | 8 | const listPotentialConfiguredChannelIds = vi.hoisted(() => vi.fn()); |
@@ -157,6 +158,7 @@ async function expectStaleMetadataSnapshotRebuild(params: {
|
157 | 158 | |
158 | 159 | describe("loadPluginLookUpTable", () => { |
159 | 160 | beforeEach(() => { |
| 161 | +clearLoadPluginMetadataSnapshotMemo(); |
160 | 162 | listPotentialConfiguredChannelIds |
161 | 163 | .mockReset() |
162 | 164 | .mockImplementation((config: OpenClawConfig) => Object.keys(config.channels ?? {})); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。