You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sync): use relative dates in calendar delta tests so they don't drift past lookback
TestSyncCalendarUpsertsAndDeletesEvents and TestSyncCalendar410ResetsAndReFetches
hardcoded `2026-05-01` for the seeded / upserted event start times. The default
[sync].calendar_lookback_days is 7, so once `time.Now()` advances past
2026-05-08 the prune step (DeleteEventsBefore(start)) deletes the events
immediately after upsert and the assertions fall over.
Switch both tests to compute the event start from `time.Now().UTC().Add(time.Hour)`
— the same shape TestSyncCalendarPrunesOldEvents already uses for relative
fixtures. The Graph delta payload's `dateTime` strings are formatted from the
same value so the upsert path lands inside the window.
Pre-existing failure on origin/main; surfaced while preparing v0.56.1 release.
0 commit comments