mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-01 07:21:17 +00:00
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:
parent
77e6f7fdc3
commit
f74bf6484e
@ -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())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user