test: clarify resilience test wording

This commit is contained in:
Peter Steinberger
2026-05-08 13:43:26 +01:00
parent 8ec92f544c
commit 4708909dc2
4 changed files with 6 additions and 6 deletions

View File

@@ -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"),

View File

@@ -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();
});

View File

@@ -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: "/" });

View File

@@ -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";