fix: persistence tests were not being properly initialized

This commit is contained in:
Deluan
2020-01-26 17:10:13 -05:00
parent 7c2728aadc
commit 0ff741b394
3 changed files with 20 additions and 28 deletions
-15
View File
@@ -2,11 +2,8 @@ package scanner
import (
"testing"
"time"
"github.com/deluan/navidrome/conf"
"github.com/deluan/navidrome/log"
"github.com/deluan/navidrome/persistence"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
@@ -17,15 +14,3 @@ func xTestScanner(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Scanner Suite")
}
var _ = XDescribe("TODO: REMOVE", func() {
It("WORKS!", func() {
conf.Server.DbPath = "./testDB"
log.SetLevel(log.LevelDebug)
ds := persistence.New()
t := NewTagScanner("/Users/deluan/Music/iTunes/iTunes Media/Music", ds)
//t := NewTagScanner("/Users/deluan/Development/navidrome/navidrome/tests/fixtures", ds)
Expect(t.Scan(nil, time.Time{})).To(BeNil())
})
})