Skip to content

Commit 0da9f7e

Browse files
committed
test: clarify delivery recovery retry assertion
1 parent 2175a0f commit 0da9f7e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,8 @@ describe("delivery-queue recovery", () => {
655655

656656
const remaining = await loadPendingDeliveries(tmpDir());
657657
expect(remaining).toHaveLength(3);
658-
expect(remaining.every((entry) => entry.retryCount === 1)).toBe(true);
658+
const entriesWithUnexpectedRetryCount = remaining.filter((entry) => entry.retryCount !== 1);
659+
expect(entriesWithUnexpectedRetryCount).toEqual([]);
659660
expect(log.warn).toHaveBeenCalledWith(expect.stringContaining("deferred to next startup"));
660661
});
661662

0 commit comments

Comments
 (0)