fix subscription dedup availability confirmation

This commit is contained in:
ShukeBta
2026-06-26 21:36:24 +08:00
parent 5450bc7c49
commit bdc3a169f7
9 changed files with 394 additions and 294 deletions
@@ -71,8 +71,8 @@ func TestEnqueueSiteSearchDedupMarksEnglishRangeAvailableForChineseSubscription(
t.Fatalf("availability missing E%d after dedup range: %#v", episode, state.Availability.ExistingEpisodeKeys)
}
}
if _, ok := state.SeenSet[candidate.GUID]; !ok {
t.Fatalf("seen set missing candidate guid after dedup")
if _, ok := state.SeenSet[candidate.GUID]; ok {
t.Fatalf("deduped candidate should not be marked seen before the next availability scan")
}
}