feat(hk): connect delivery failures to precise diagnostic records
This commit is contained in:
1 parent
275a574203
commit
60e49c1ec9
17 files changed
+253
-20
No files matched your search
@@ -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();
|
||||
});
|
||||
Reference in new issue
Block a user