navidrome/scanner/scanner_suite_test.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
585 B
Go
Raw Normal View History

2020-01-16 22:53:48 +01:00
package scanner
import (
"testing"
2022-07-30 18:43:48 +02:00
"github.com/beego/beego/v2/client/orm"
2021-07-16 17:03:28 +02:00
"github.com/navidrome/navidrome/conf"
"github.com/navidrome/navidrome/db"
2020-01-24 01:44:08 +01:00
"github.com/navidrome/navidrome/log"
"github.com/navidrome/navidrome/tests"
2022-07-26 22:47:16 +02:00
. "github.com/onsi/ginkgo/v2"
2020-01-16 22:53:48 +01:00
. "github.com/onsi/gomega"
)
func TestScanner(t *testing.T) {
tests.Init(t, true)
2021-07-16 17:03:28 +02:00
conf.Server.DbPath = "file::memory:?cache=shared"
_ = orm.RegisterDataBase("default", db.Driver, conf.Server.DbPath)
db.EnsureLatestVersion()
2020-01-16 22:53:48 +01:00
log.SetLevel(log.LevelCritical)
RegisterFailHandler(Fail)
RunSpecs(t, "Scanner Suite")
}