TestScan_StoresOnlyCoverTiers fails instead of skipping when the fixtures are not generated #266

Closed
opened 2026-09-26 21:02:33 +00:00 by yonlu · 1 comment
Owner

TestScan_StoresOnlyCoverTiers (backend/library/coverart_storage_test.go) builds the fixture path by hand and fails when test_data/music_library_test/ has not been generated. Every other fixture test goes through testfixtures.Load(t) and skips. In a fresh worktree the pre-push hook therefore refuses to push any branch, with read covers dir: ... no such file or directory.

Fix: take the root from testfixtures.Load(t).Root().

`TestScan_StoresOnlyCoverTiers` (`backend/library/coverart_storage_test.go`) builds the fixture path by hand and fails when `test_data/music_library_test/` has not been generated. Every other fixture test goes through `testfixtures.Load(t)` and skips. In a fresh worktree the pre-push hook therefore refuses to push any branch, with `read covers dir: ... no such file or directory`. **Fix:** take the root from `testfixtures.Load(t).Root()`.
yonlu added the
Priority
Low
4
Kind/TestingKind/Bug
labels 2026-09-26 21:02:33 +00:00
yonlu self-assigned this 2026-09-26 21:02:40 +00:00
yonlu added the
Status
In Progress
label 2026-09-26 21:02:40 +00:00
Author
Owner

Fixing on fix/263-slskd-transfer-lifecycle as a commit of its own; it was blocking that branch's push.

Fixing on `fix/263-slskd-transfer-lifecycle` as a commit of its own; it was blocking that branch's push.
yonlu closed this issue 2026-09-27 01:45:21 +00:00
gitea-actions bot removed the
Status
In Progress
label 2026-09-27 01:47:04 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: yonlu/yellowjacket#266