From 4911b2a0d50501d3fa98c24ad82b5a0a8b546df3 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 6 May 2026 17:49:26 -0400 Subject: [PATCH] =?UTF-8?q?fix(server/m7-cover-sources):=20forward-fix=20C?= =?UTF-8?q?I=20=E2=80=94=20Mount=20call=20in=20library=5Ftest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit T11 added *coverart.SettingsService to Mount() between the coverArtBackfillCap (int) and the *library.Scanner pointer. The TestRoutesRegisteredInMount call site in library_test.go missed the new arg. Insert h.coverSettings at the right position. --- internal/api/library_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/api/library_test.go b/internal/api/library_test.go index ccf05d87..951d1bd5 100644 --- a/internal/api/library_test.go +++ b/internal/api/library_test.go @@ -443,7 +443,7 @@ func TestRoutesRegisteredInMount(t *testing.T) { r := chi.NewRouter() w := playevents.NewWriter(h.pool, slog.New(slog.NewTextHandler(io.Discard, nil)), 30*time.Minute, 0.5, 30000) - Mount(r, h.pool, h.logger, w, config.RecommendationConfig{RadioSize: 50, RadioSizeMax: 200, RecentlyPlayedHours: 1}, h.lidarrCfg, h.lidarrRequests, h.lidarrQuarantine, h.tracks, h.playlists, h.coverart, h.coverArtBackfillCap, h.scanner, h.scanCfg, h.dataDir) + Mount(r, h.pool, h.logger, w, config.RecommendationConfig{RadioSize: 50, RadioSizeMax: 200, RecentlyPlayedHours: 1}, h.lidarrCfg, h.lidarrRequests, h.lidarrQuarantine, h.tracks, h.playlists, h.coverart, h.coverArtBackfillCap, h.coverSettings, h.scanner, h.scanCfg, h.dataDir) paths := []string{ "/api/artists",