Remove dependency of deprecated ioutil package

This commit is contained in:
Deluan
2021-07-20 20:00:58 -04:00
parent 774ad65155
commit 8afa2cd833
23 changed files with 77 additions and 86 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ package core
import (
"context"
"image"
"io/ioutil"
"os"
"github.com/navidrome/navidrome/conf"
"github.com/navidrome/navidrome/log"
@@ -33,7 +33,7 @@ var _ = Describe("Artwork", func() {
Context("Cache is configured", func() {
BeforeEach(func() {
conf.Server.DataFolder, _ = ioutil.TempDir("", "file_caches")
conf.Server.DataFolder, _ = os.MkdirTemp("", "file_caches")
conf.Server.ImageCacheSize = "100MB"
cache := GetImageCache()
Eventually(func() bool { return cache.Ready(context.TODO()) }).Should(BeTrue())