test: tighten bonjour ciao coverage

This commit is contained in:
Peter Steinberger
2026-03-14 00:54:33 +00:00
parent 9fbb7eb2e1
commit a23a23ba69

View File

@@ -18,6 +18,17 @@ describe("bonjour-ciao", () => {
);
});
it("ignores lower-case string cancellation reasons too", () => {
logDebugMock.mockReset();
expect(ignoreCiaoCancellationRejection("ciao announcement cancelled during cleanup")).toBe(
true,
);
expect(logDebugMock).toHaveBeenCalledWith(
expect.stringContaining("ignoring unhandled ciao rejection"),
);
});
it("keeps unrelated rejections visible", () => {
logDebugMock.mockReset();