

























@@ -111,11 +111,15 @@ describe("runPostCorePluginConvergence", () => {
111111env: {},
112112});
113113expect(result.errored).toBe(true);
114-expect(result.warnings).toHaveLength(1);
115-expect(result.warnings[0]).toMatchObject({
116-reason: expect.stringContaining("discord"),
117-guidance: expect.arrayContaining([expect.stringContaining("openclaw doctor --fix")]),
118-});
114+expect(result.warnings).toStrictEqual([
115+{
116+reason:
117+'Failed to install missing configured plugin "discord" from @openclaw/discord: ENETUNREACH.',
118+message:
119+'Failed to install missing configured plugin "discord" from @openclaw/discord: ENETUNREACH.',
120+guidance: ["Run `openclaw doctor --fix` to retry plugin repair."],
121+},
122+]);
119123});
120124121125it("flags errored=true when smoke check finds a missing main entry", async () => {
@@ -142,14 +146,18 @@ describe("runPostCorePluginConvergence", () => {
142146env: {},
143147});
144148expect(result.errored).toBe(true);
145-expect(result.warnings).toEqual([
146-expect.objectContaining({
149+expect(result.warnings).toStrictEqual([
150+{
147151pluginId: "brave",
148-reason: expect.stringContaining("missing-main-entry"),
149-guidance: expect.arrayContaining([
150-expect.stringContaining("openclaw plugins inspect brave"),
151-]),
152-}),
152+reason:
153+'missing-main-entry: Plugin main entry "dist/index.js" not found at /p/brave/dist/index.js',
154+message:
155+'Plugin "brave" failed post-core payload smoke check (missing-main-entry): Plugin main entry "dist/index.js" not found at /p/brave/dist/index.js',
156+guidance: [
157+"Run `openclaw doctor --fix` to retry plugin repair.",
158+"Run `openclaw plugins inspect brave --runtime --json` for details.",
159+],
160+},
153161]);
154162});
155163@@ -176,10 +184,18 @@ describe("runPostCorePluginConvergence", () => {
176184env: {},
177185});
178186expect(result.errored).toBe(true);
179-expect(result.warnings[0]).toMatchObject({
180-pluginId: "brave",
181-reason: expect.stringContaining("missing-install-path"),
182-});
187+expect(result.warnings).toStrictEqual([
188+{
189+pluginId: "brave",
190+reason: "missing-install-path: Install path is missing from the plugin install record.",
191+message:
192+'Plugin "brave" failed post-core payload smoke check (missing-install-path): Install path is missing from the plugin install record.',
193+guidance: [
194+"Run `openclaw doctor --fix` to retry plugin repair.",
195+"Run `openclaw plugins inspect brave --runtime --json` for details.",
196+],
197+},
198+]);
183199});
184200185201it("hands repair's post-mutation records straight to the smoke check (no second disk read)", async () => {
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。