bug处理

This commit is contained in:
truewhile
2026-09-08 08:41:01 +08:00
parent b23b1d728e
commit fdfb2ee987
3 changed files with 13 additions and 7 deletions
+4 -1
View File
@@ -284,11 +284,14 @@ func TestShouldReplaceHLSJob(t *testing.T) {
}
func TestFilterHLSSegmentQueryDropsStart(t *testing.T) {
got := filterHLSSegmentQuery("token=abc&start=120.5&profile_id=1")
got := filterHLSSegmentQuery("token=abc&start=120.5&_seek=1001&profile_id=1")
if strings.Contains(got, "start=") {
t.Fatalf("start should be stripped, got %q", got)
}
if !strings.Contains(got, "token=abc") || !strings.Contains(got, "profile_id=1") {
t.Fatalf("auth/profile query should remain, got %q", got)
}
if !strings.Contains(got, "_seek=1001") {
t.Fatalf("_seek must remain to isolate cached segment generations, got %q", got)
}
}