quintodrome/scanner/scanner_suite_test.go

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

24 lines
567 B
Go
Raw Normal View History

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