photoprism/internal/workers/workers_test.go

23 lines
304 B
Go
Raw Normal View History

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)
}