Remove temp folders after tests

This commit is contained in:
Deluan
2021-10-28 10:40:31 -04:00
parent fa3471f527
commit 66a9cbb7d9
6 changed files with 30 additions and 15 deletions
+3
View File
@@ -39,6 +39,9 @@ var _ = Describe("Artwork", func() {
Eventually(func() bool { return cache.Ready(context.TODO()) }).Should(BeTrue())
artwork = NewArtwork(ds, cache)
})
AfterEach(func() {
_ = os.RemoveAll(conf.Server.DataFolder)
})
It("retrieves the external artwork art for an album", func() {
r, err := artwork.Get(ctx, "al-444", 0)