A live thetvapp row is timed by the wall clock, not the list cache's (#196) #198
Loading…
Reference in a new issue
No description provided.
Delete branch "thetvapp-mascot-wall-clock"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #197, which merged and deployed (live as
0b05249) but left LSU vs. UL Monroe and BYU vs. N Colorado listed twice.Why. A live thetvapp row gives no start, so the rule takes its time as now.
_tvapp_mascot_matchread now fromgames._now(), which istime.monotonic(): the clock of the list's cache, which counts from the machine's start. It then compared that with the entry's unix start, so no live row ever joined. The tests had stubbed_nowwith a unix time, which hid it.The fix. It reads
games._wall(). The tests now stub_walland leave_nowrunning; with the old clock put back, the two live-row tests fail.Checks
make test: 1528 passed, 1 skipped.make e2e: every leg passed.Live, after the deploy: each game is listed once, and the ESPN game carries the thetvapp link.
Refs #196
🤖 Generated with Claude Code