From 1936fe77c647f8cda64df450a067dd33c5f845e8 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Sat, 10 Oct 2026 17:51:42 -0400 Subject: [PATCH] fix: the matcher-retry test stamps the listing's cutoff after its albums exist, as a listing done before them would not see them (M502 #5569) Co-Authored-By: Claude Opus 5.5 --- internal/wanted/library_test.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/wanted/library_test.go b/internal/wanted/library_test.go index 029252ab..7f1a6187 100644 --- a/internal/wanted/library_test.go +++ b/internal/wanted/library_test.go @@ -299,7 +299,10 @@ func TestListLibrary_RetriesAnOlderMatchersRefusals_Integration(t *testing.T) { if _, err := pool.Exec(ctx, `UPDATE library_album_matches SET matcher = $1 WHERE album_id = $2`, libraryMatcher, bootleg.ID); err != nil { t.Fatal(err) } - // The reset leaves the listing done. + // A listing done, with these albums from before its cutoff. + if _, err := pool.Exec(ctx, `UPDATE acquisition_settings SET library_listing_started_at = now(), library_listed_at = now()`); err != nil { + t.Fatal(err) + } if err := s.listLibrary(ctx, &PassResult{}); err != nil { t.Fatal(err) }