diff --git a/src/resources/extensions/sf/tests/iter-completion-reconciler.test.mjs b/src/resources/extensions/sf/tests/iter-completion-reconciler.test.mjs index fd2f97157..e3b336ea2 100644 --- a/src/resources/extensions/sf/tests/iter-completion-reconciler.test.mjs +++ b/src/resources/extensions/sf/tests/iter-completion-reconciler.test.mjs @@ -120,9 +120,14 @@ function makeMemDb() { }; } -const TS_X = "2026-05-17T12:42:05.618Z"; -const TS_OLDER = "2026-05-17T11:00:00.000Z"; -const TS_NEWER = "2026-05-17T14:00:00.000Z"; +// Test timestamps are computed relative to NOW so the reconciler's default +// maxAgeMs filter (1h — "older drift is operator territory") doesn't drop +// them as the calendar moves past the original literal timestamps. Tests +// that explicitly want stale entries pass their own past timestamp. +const NOW_MS = Date.now(); +const TS_X = new Date(NOW_MS - 5 * 60 * 1000).toISOString(); // 5 min ago +const TS_OLDER = new Date(NOW_MS - 30 * 60 * 1000).toISOString(); // 30 min ago +const TS_NEWER = new Date(NOW_MS - 1 * 60 * 1000).toISOString(); // 1 min ago // ─── Tests ──────────────────────────────────────────────────────────────────