package workers import ( "os" "testing" "github.com/photoprism/photoprism/internal/config" "github.com/sirupsen/logrus" ) func TestMain(m *testing.M) { log = logrus.StandardLogger() log.SetLevel(logrus.DebugLevel) c := config.TestConfig() code := m.Run() _ = c.CloseDb() os.Exit(code) }