fix: surface durable hourly attempt in accounts and income meta (WealthLedger/backend#58)
Backend verify / commits (pull_request) Successful in 36s
Backend verify / security (pull_request) Successful in 13s
Backend verify / verify (pull_request) Successful in 5m50s

This commit is contained in:
2026-10-14 17:50:30 +03:00
parent b90cedd580
commit a580a8183e
6 changed files with 80 additions and 4 deletions
+3 -1
View File
@@ -266,7 +266,9 @@ describe('local income completeness and exact money (SQLite)', () => {
await repo.fail(fence, false);
const after = await read();
expect(after.data).toEqual(before.data);
expect(after.meta.lastAttempt.state).toBe('failed');
// Without an hourly walk the durable attempt is absent; the failed
// source work stays a technical observation, not the hourly attempt.
expect(after.meta.lastAttempt.state).toBe('none');
expect(upstream.getOperationsByCursor).not.toHaveBeenCalled();
});
it('retains current-month observed completeness and does not renew source timestamps', async () => {