test(persistence): scope the GetCursorWithArtwork full-stream spec to tie-free ids

The fixture has title ties (e.g. three "Antenna" tracks), so the unscoped
positional comparison against GetAll only passed because SQLite's tie order
happened to coincide between the full scan and the pre-pass's id IN (...)
fetch. Scope it to onlySongs like the sibling ordering specs already do.
This commit is contained in:
Deluan 2026-07-24 00:02:55 -04:00
parent 77e6f7fdc3
commit f74bf6484e

View File

@ -600,7 +600,9 @@ var _ = Describe("Artwork hydration", func() {
})
It("hydrates artwork onto every streamed track, unlike GetCursor", func() {
opts := model.QueryOptions{Sort: "title"}
// Scoped to onlySongs (distinct titles): the full fixture has title ties (e.g. "Antenna"
// x3), so positional comparison against GetAll would only pass by tie-order coincidence.
opts := model.QueryOptions{Sort: "title", Filters: onlySongs}
want, err := mfRepo.GetAll(opts)
Expect(err).ToNot(HaveOccurred())
Expect(want).ToNot(BeEmpty())