mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
test(e2e): wire the DataStore into the lyrics service
The lyrics service now queries the DataStore for the legacy artist/title lookup (GetLyricsByArtistTitle). The e2e suites still constructed it with a nil DataStore, so the getLyrics endpoint panicked with a nil-pointer dereference. Pass the suite's existing ds to lyrics.NewLyrics in both e2e routers.
This commit is contained in:
parent
af727cf6ac
commit
04d895d473
@ -501,7 +501,7 @@ func setupTestDB() {
|
||||
core.NewShare(ds),
|
||||
playback.PlaybackServer(nil),
|
||||
metrics.NewNoopInstance(),
|
||||
lyrics.NewLyrics(nil, nil),
|
||||
lyrics.NewLyrics(ds, nil),
|
||||
decider,
|
||||
nil,
|
||||
)
|
||||
|
||||
@ -47,7 +47,7 @@ func buildSonicRouter(provider sonic.Provider) *subsonic.Router {
|
||||
core.NewShare(ds),
|
||||
playback.PlaybackServer(nil),
|
||||
metrics.NewNoopInstance(),
|
||||
lyrics.NewLyrics(nil, nil),
|
||||
lyrics.NewLyrics(ds, nil),
|
||||
decider,
|
||||
sonicSvc,
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user