Repository navigation
Commit eeaa56d
committed
Fix regression test to actually exercise the lead-time bound
- candidateOccurrences(1, Date.UTC(2026, 11, 1)) generates December 2026
(month index 11), not January 2027, so the test's January-titled discussion
was excluded by month mismatch alone and never reached the 300-day lead-time
check it was meant to cover — a false-positive pass.
- Target the January 2027 occurrence directly (from = 2027-01-01) with a
sanity assertion on monthIndex, and verified by hand that the lead (374
days) is what the bound actually rejects.
- Re-verified live against the real GitHub API: sync still reports
"already synchronized", confirming the production matching logic was
already correct and only the test needed fixing.1 parent 426c9fd commit eeaa56d
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
| 115 | + | |
115 | 116 | | |
116 | 117 | | |
117 | 118 | | |
| |||
0 commit comments