photoprism/internal/util/util_test.go

20 lines
261 B
Go
Raw Normal View History

2019-07-17 15:03:12 +00:00
package util
import (
"bytes"
"os"
"testing"
"github.com/sirupsen/logrus"
)
var logBuffer bytes.Buffer
func TestMain(m *testing.M) {
log = logrus.StandardLogger()
log.Out = &logBuffer
log.SetLevel(logrus.DebugLevel)
code := m.Run()
os.Exit(code)
}