3698a860c6
Adds SQLite memory namespaces to avoid potential conflicts.
22 lines
316 B
Go
22 lines
316 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.TraceLevel)
|
|
|
|
c := config.NewTestConfig("workers")
|
|
|
|
code := m.Run()
|
|
|
|
_ = c.CloseDb()
|
|
|
|
os.Exit(code)
|
|
}
|