Skip to content

Commit 5959a99

Browse files
committed
test: queue outbound log text
1 parent 201dd73 commit 5959a99

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/infra/outbound/delivery-queue.reconnect-drain.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function firstMockArg(
5555
}
5656

5757
function expectLogMessageWith(logFn: ReturnType<typeof vi.fn>, text: string): void {
58-
expect(logFn.mock.calls.some(([message]) => String(message).includes(text))).toBe(true);
58+
expect(logFn.mock.calls.map(([message]) => String(message)).join("\n")).toContain(text);
5959
}
6060

6161
async function drainDirectChatReconnectPending(opts: {

src/infra/outbound/delivery-queue.recovery.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function mockCallArg(mock: { mock: { calls: unknown[][] } }, index = 0): unknown
3232

3333
function expectMockMessageContaining(mock: { mock: { calls: unknown[][] } }, expected: string) {
3434
const messages = mock.mock.calls.map((call) => (typeof call[0] === "string" ? call[0] : ""));
35-
expect(messages.some((message) => message.includes(expected))).toBe(true);
35+
expect(messages.join("\n")).toContain(expected);
3636
}
3737

3838
describe("delivery-queue recovery", () => {

0 commit comments

Comments
 (0)