Files
photoprism/internal/workers/workers_test.go
Michael Mayer 424ed84f2a Backups: Add worker to create backups in the background #4237 #4243
In the next step, this worker can be configured to automatically create
index and/or album backups at regular intervals.

Signed-off-by: Michael Mayer <michael@photoprism.app>
2024-05-10 17:41:32 +02:00

27 lines
460 B
Go

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