Capture additional fields to investigate DRM errors

This commit is contained in:
Brahim Hadriche committed 2026-10-16 17:13:40 -04:00
1 parent 555665488d
commit 9eac1aac04
14 files changed
+251 -47

No files matched your search

@@ -176,14 +176,12 @@ namespace Tests
function _()
m.LoadLive([{ seqnum: 10, timeMs: 18630 }, { seqnum: -1, timeMs: invalid }])
m.RefreshDue()
handoff = StringUtils.ParseJsonSafe(ReadAsciiFile(LIVE_LOAD_COUNTS_PATH))
m.assertEqual(handoff["live_timeline"]["corrections"], 1)
m.assertEqual(VideoLoadHandoff.Read(LIVE_LOAD_COUNTS_PATH, "live1")["live_timeline"]["corrections"], 1)
m.RefreshDue()
handoff = StringUtils.ParseJsonSafe(ReadAsciiFile(LIVE_LOAD_COUNTS_PATH))
m.assertEqual(handoff["video_load_id"], "live1")
m.assertEqual(handoff["live_head"]["checks_sent"], 2)
m.assertEqual(handoff["live_head"]["answered_without_head"], 1)
m.assertEqual(handoff["live_timeline"], m.router.liveTimelineCounts)
counts = VideoLoadHandoff.Read(LIVE_LOAD_COUNTS_PATH, "live1")
m.assertEqual(counts["live_head"]["checks_sent"], 2)
m.assertEqual(counts["live_head"]["answered_without_head"], 1)
m.assertEqual(counts["live_timeline"], m.router.liveTimelineCounts)
end function
@it("gives a list behind the head the cadence since load; the load head ended where the list stays ahead")