23 lines
304 B
Go
23 lines
304 B
Go
|
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)
|
||
|
}
|