mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 20:40:47 +00:00
test: clarify resilience test wording
This commit is contained in:
@@ -1809,7 +1809,7 @@ describe("registerMatrixMonitorEvents verification routing", () => {
|
||||
}
|
||||
});
|
||||
|
||||
it("does not throw when getUserId fails during decrypt guidance lookup", async () => {
|
||||
it("logs decrypt guidance when getUserId fails during lookup", async () => {
|
||||
const { logger, logVerboseMessage, failedDecryptListener } = createHarness({
|
||||
accountId: "ops",
|
||||
selfUserIdError: new Error("lookup failed"),
|
||||
|
||||
@@ -295,7 +295,7 @@ describe("TwitchClientManager", () => {
|
||||
});
|
||||
|
||||
it("should handle disconnecting non-existent client gracefully", async () => {
|
||||
// disconnect doesn't throw, just does nothing
|
||||
// Missing clients are ignored.
|
||||
await manager.disconnect(testAccount);
|
||||
expect(mockQuit).not.toHaveBeenCalled();
|
||||
});
|
||||
@@ -326,7 +326,7 @@ describe("TwitchClientManager", () => {
|
||||
});
|
||||
|
||||
it("should handle empty client list gracefully", async () => {
|
||||
// disconnectAll doesn't throw, just does nothing
|
||||
// Empty client sets are ignored.
|
||||
await manager.disconnectAll();
|
||||
expect(mockQuit).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -96,7 +96,7 @@ describe("createHooksRequestHandler timeout status mapping", () => {
|
||||
});
|
||||
|
||||
test.each(["0.0.0.0", "::"])(
|
||||
"does not throw when bindHost=%s while parsing non-hook request URL",
|
||||
"returns unhandled when bindHost=%s sees a non-hook request URL",
|
||||
async (bindHost) => {
|
||||
const handler = createHooksHandler({ bindHost });
|
||||
const req = createHookRequest({ url: "/" });
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
* Wave 2 — frontmatter edges.
|
||||
*
|
||||
* Substrate guarantee: frontmatter is parsed as `key: value` entries
|
||||
* with quote-stripping; malformed frontmatter doesn't crash the parser
|
||||
* (soft-error policy: emit diagnostic, recover).
|
||||
* with quote-stripping; malformed frontmatter follows the soft-error
|
||||
* policy by emitting diagnostics and recovering.
|
||||
*/
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { parseMd } from "../../parse.js";
|
||||
|
||||
Reference in New Issue
Block a user