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:
Deluan 2026-06-19 09:16:38 -04:00
parent af727cf6ac
commit 04d895d473
2 changed files with 2 additions and 2 deletions

View File

@ -501,7 +501,7 @@ func setupTestDB() {
core.NewShare(ds),
playback.PlaybackServer(nil),
metrics.NewNoopInstance(),
lyrics.NewLyrics(nil, nil),
lyrics.NewLyrics(ds, nil),
decider,
nil,
)

View File

@ -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,
)