photoprism/internal/get/get_test.go

19 lines
232 B
Go
Raw Normal View History

package get
import (
"os"
"testing"
"github.com/photoprism/photoprism/internal/config"
)
func TestMain(m *testing.M) {
c := config.NewTestConfig("service")
SetConfig(c)
defer c.CloseDb()
code := m.Run()
os.Exit(code)
}