test: clarify plugin state probe assertions · openclaw/openclaw@0ddfaff
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -264,7 +264,8 @@ describe("failure safety", () => {
|
264 | 264 | expect(result.ok).toBe(true); |
265 | 265 | expect(result.dbPath).toContain("state.sqlite"); |
266 | 266 | expect(result.steps.length).toBeGreaterThanOrEqual(4); |
267 | | -expect(result.steps.every((s) => s.ok)).toBe(true); |
| 267 | +const failedSteps = result.steps.filter((step) => !step.ok); |
| 268 | +expect(failedSteps).toEqual([]); |
268 | 269 | |
269 | 270 | // The probe's temporary stored value must not leak into the result. |
270 | 271 | const serialised = JSON.stringify(result); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -465,7 +465,8 @@ describe("plugin state keyed store", () => {
|
465 | 465 | await withOpenClawTestState({ label: "plugin-state-probe" }, async () => { |
466 | 466 | const result = probePluginStateStore(); |
467 | 467 | expect(result.ok).toBe(true); |
468 | | -expect(result.steps.every((step) => step.ok)).toBe(true); |
| 468 | +const failedSteps = result.steps.filter((step) => !step.ok); |
| 469 | +expect(failedSteps).toEqual([]); |
469 | 470 | expect(JSON.stringify(result)).not.toContain("probe-value"); |
470 | 471 | }); |
471 | 472 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。