mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 10:10:18 +00:00
test: tighten bonjour ciao coverage
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user