feat(hk): connect delivery failures to precise diagnostic records
CI / check (push) Successful in 3m31s
CI / deploy (push) Successful in 18s
CI / publish-container (push) Successful in 1m12s

This commit is contained in:
Simo committed 2026-09-13 20:25:03 +02:00
1 parent 275a574203
commit 60e49c1ec9
17 files changed
+253 -20

No files matched your search

+3 -2
View File
@@ -49,8 +49,9 @@ it("invalidates the shared news cache before acknowledging delivery", async () =
expect(mocks.fail).not.toHaveBeenCalled();
});
it("keeps a failed news invalidation retryable", async () => {
mocks.news.mockRejectedValue(new Error("Redis unavailable"));
const error = new Error("Redis unavailable");
mocks.news.mockRejectedValue(error);
await drainOperationEffects();
expect(mocks.fail).toHaveBeenCalledWith(effect);
expect(mocks.fail).toHaveBeenCalledWith(effect, error);
expect(mocks.complete).not.toHaveBeenCalled();
});