From 9e67088fdb69b5efc9de8562ba32360b7728cdf5 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 3 Jun 2026 13:30:36 -0400 Subject: [PATCH] fix(server): TestRoutesRegisteredInMount - missing streamSecret arg go vet caught the test's Mount call missing the trailing []byte streamSecret arg added by the UPnP slice's Task 2. The test passed nil for *playlists.Scheduler but didn't pass anything for []byte, so the arg count was one short. Added nil for the streamSecret position - the test exercises route registration only, not the cast-token endpoint, so the secret value doesn't matter for what this test asserts. --- 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 102b16b7..5ac1b450 100644 --- a/internal/api/library_test.go +++ b/internal/api/library_test.go @@ -465,7 +465,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.coverSettings, h.scanner, h.scanCfg, nil, h.dataDir, nil, eventbus.New(), nil) + 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.coverSettings, h.scanner, h.scanCfg, nil, h.dataDir, nil, eventbus.New(), nil, nil) paths := []string{ "/api/artists",