mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 21:17:37 +03:00
31 lines
775 B
Go
31 lines
775 B
Go
package scanner
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/cloudsonic/sonic-server/conf"
|
|
"github.com/cloudsonic/sonic-server/log"
|
|
"github.com/cloudsonic/sonic-server/persistence"
|
|
. "github.com/onsi/ginkgo"
|
|
. "github.com/onsi/gomega"
|
|
)
|
|
|
|
// TODO Fix OS dependencies
|
|
func xTestScanner(t *testing.T) {
|
|
log.SetLevel(log.LevelCritical)
|
|
RegisterFailHandler(Fail)
|
|
RunSpecs(t, "Scanner Suite")
|
|
}
|
|
|
|
var _ = XDescribe("TODO: REMOVE", func() {
|
|
It("WORKS!", func() {
|
|
conf.Sonic.DbPath = "./testDB"
|
|
log.SetLevel(log.LevelDebug)
|
|
ds := persistence.New()
|
|
|
|
t := NewTagScanner("/Users/deluan/Music/iTunes/iTunes Media/Music", ds)
|
|
//t := NewTagScanner("/Users/deluan/Development/cloudsonic/sonic-server/tests/fixtures", ds)
|
|
Expect(t.Scan(nil, time.Time{})).To(BeNil())
|
|
})
|
|
})
|