navidrome/scanner/scanner_suite_test.go

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

22 lines
467 B
Go
Raw Normal View History

2020-01-16 22:53:48 +01:00
package scanner
import (
"testing"
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"
2024-05-09 13:42:40 +02:00
defer db.Init()()
log.SetLevel(log.LevelFatal)
2020-01-16 22:53:48 +01:00
RegisterFailHandler(Fail)
RunSpecs(t, "Scanner Suite")
}