refactor(schedule): bound fixed-rate reminders

This commit is contained in:
Tianyi Cui
2026-08-09 17:04:48 +08:00
parent 3fa4c012b1
commit 45ff1eab98
40 changed files with 982 additions and 3977 deletions

View File

@@ -15,7 +15,7 @@ function event(data: unknown, seq: number): SessionEvent {
}
describe('fixed-rate recurrence properties', () => {
it('keeps runtime calculation and durable folding on the same anchor sequence', () => {
it('keeps latest-only runtime calculation and durable folding on the creation anchor', () => {
fc.assert(fc.property(
fc.integer({ min: 300, max: 86_400 }),
fc.integer({ min: 0, max: 10_000 }),
@@ -48,7 +48,6 @@ describe('fixed-rate recurrence properties', () => {
}, 1),
])
expect(folded.active).toEqual([{ ...record, scheduledAt: expectedNext }])
expect(folded.lastRecurringAcceptedAt).toBe(new Date(accepted).toISOString())
},
), { numRuns: 300 })
})