From 0747e6300685565fb44408b8bfb167f933fb8817 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 5 May 2026 02:09:46 +0100 Subject: [PATCH] test(plugins): align metadata snapshot policy fixtures --- src/plugins/capability-provider-runtime.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/capability-provider-runtime.test.ts b/src/plugins/capability-provider-runtime.test.ts index 212079409a7..543cced4a18 100644 --- a/src/plugins/capability-provider-runtime.test.ts +++ b/src/plugins/capability-provider-runtime.test.ts @@ -1,5 +1,6 @@ import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest"; import type { OpenClawConfig } from "../config/config.js"; +import { resolveInstalledPluginIndexPolicyHash } from "./installed-plugin-index-policy.js"; import { createEmptyPluginRegistry } from "./registry.js"; type MockManifestRegistry = { @@ -302,7 +303,7 @@ describe("resolvePluginCapabilityProviders", () => { it("resolves bundled capability ids from the current metadata snapshot", () => { setCurrentPluginMetadataSnapshot({ - policyHash: "policy", + policyHash: resolveInstalledPluginIndexPolicyHash({}), workspaceDir: "/workspace", index: { plugins: [] }, registryDiagnostics: [], @@ -348,7 +349,7 @@ describe("resolvePluginCapabilityProviders", () => { it("resolves enabled external capability ids from the current metadata snapshot", () => { setCurrentPluginMetadataSnapshot({ - policyHash: "policy", + policyHash: resolveInstalledPluginIndexPolicyHash({}), workspaceDir: "/workspace", index: { plugins: [