test: clarify resilience test wording · openclaw/openclaw@4708909
steipete
·
2026-05-08
·
via Recent Commits to openclaw:main
File tree
matrix/src/matrix/monitor
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1809,7 +1809,7 @@ describe("registerMatrixMonitorEvents verification routing", () => {
|
1809 | 1809 | } |
1810 | 1810 | }); |
1811 | 1811 | |
1812 | | -it("does not throw when getUserId fails during decrypt guidance lookup", async () => { |
| 1812 | +it("logs decrypt guidance when getUserId fails during lookup", async () => { |
1813 | 1813 | const { logger, logVerboseMessage, failedDecryptListener } = createHarness({ |
1814 | 1814 | accountId: "ops", |
1815 | 1815 | selfUserIdError: new Error("lookup failed"), |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -295,7 +295,7 @@ describe("TwitchClientManager", () => {
|
295 | 295 | }); |
296 | 296 | |
297 | 297 | it("should handle disconnecting non-existent client gracefully", async () => { |
298 | | -// disconnect doesn't throw, just does nothing |
| 298 | +// Missing clients are ignored. |
299 | 299 | await manager.disconnect(testAccount); |
300 | 300 | expect(mockQuit).not.toHaveBeenCalled(); |
301 | 301 | }); |
@@ -326,7 +326,7 @@ describe("TwitchClientManager", () => {
|
326 | 326 | }); |
327 | 327 | |
328 | 328 | it("should handle empty client list gracefully", async () => { |
329 | | -// disconnectAll doesn't throw, just does nothing |
| 329 | +// Empty client sets are ignored. |
330 | 330 | await manager.disconnectAll(); |
331 | 331 | expect(mockQuit).not.toHaveBeenCalled(); |
332 | 332 | }); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -96,7 +96,7 @@ describe("createHooksRequestHandler timeout status mapping", () => {
|
96 | 96 | }); |
97 | 97 | |
98 | 98 | test.each(["0.0.0.0", "::"])( |
99 | | -"does not throw when bindHost=%s while parsing non-hook request URL", |
| 99 | +"returns unhandled when bindHost=%s sees a non-hook request URL", |
100 | 100 | async (bindHost) => { |
101 | 101 | const handler = createHooksHandler({ bindHost }); |
102 | 102 | const req = createHookRequest({ url: "/" }); |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,8 +2,8 @@
|
2 | 2 | * Wave 2 — frontmatter edges. |
3 | 3 | * |
4 | 4 | * Substrate guarantee: frontmatter is parsed as `key: value` entries |
5 | | - * with quote-stripping; malformed frontmatter doesn't crash the parser |
6 | | - * (soft-error policy: emit diagnostic, recover). |
| 5 | + * with quote-stripping; malformed frontmatter follows the soft-error |
| 6 | + * policy by emitting diagnostics and recovering. |
7 | 7 | */ |
8 | 8 | import { describe, expect, it } from "vitest"; |
9 | 9 | import { parseMd } from "../../parse.js"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。