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 <deluan@navidrome.org>
This commit is contained in:
Deluan committed 2026-11-13 11:56:18 -05:00
1 parent 02329496a8
commit db27b6208d
1 file changed
+1 -2
@@ -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{