From db27b6208d066d65a405c0d7fff8a831e10562b8 Mon Sep 17 00:00:00 2001 From: Deluan Date: Fri, 13 Nov 2026 11:56:18 -0500 Subject: [PATCH] fix: adapt to copy-on-write config Use conf.Update in the smart playlist cover specs. The persistence suite already restores config after each spec. Signed-off-by: Deluan --- persistence/smart_playlist_repository_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/persistence/smart_playlist_repository_test.go b/persistence/smart_playlist_repository_test.go index d0b1a7dab..35b3deddd 100644 --- a/persistence/smart_playlist_repository_test.go +++ b/persistence/smart_playlist_repository_test.go @@ -73,8 +73,7 @@ var _ = Describe("PlaylistRepository - Smart Playlists", func() { } BeforeEach(func() { - DeferCleanup(configtest.SetupConfig()) - conf.Server.SmartPlaylistRefreshDelay = -1 * time.Second + conf.Update(func(c *conf.Options) { c.SmartPlaylistRefreshDelay = -1 * time.Second }) clearArtworkTables() DeferCleanup(clearArtworkTables) pls = model.Playlist{Name: "Covered", OwnerID: "userid", Rules: &criteria.Criteria{