Skip to content

Commit aff2b9d

Browse files
fix(outbound): preserve retries for budget-deferred deliveries
1 parent 1858898 commit aff2b9d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,8 +638,7 @@ describe("delivery-queue recovery", () => {
638638

639639
const remaining = await loadPendingDeliveries(tmpDir());
640640
expect(remaining).toHaveLength(3);
641-
const entriesWithUnexpectedRetryCount = remaining.filter((entry) => entry.retryCount !== 0);
642-
expect(entriesWithUnexpectedRetryCount).toStrictEqual([]);
641+
expect(remaining.map((entry) => entry.retryCount)).toStrictEqual([0, 0, 0]);
643642
expectMockMessageContaining(log.warn, "deferred to next startup");
644643
});
645644

0 commit comments

Comments
 (0)