sliding-sync/sync3/main_test.go

23 lines
502 B
Go
Raw Permalink Normal View History

2021-10-05 16:22:02 +01:00
package sync3
import (
"os"
"testing"
"github.com/matrix-org/sliding-sync/testutils"
"github.com/rs/zerolog"
)
2021-10-07 15:58:14 +01:00
var postgresConnectionString = "user=xxxxx dbname=syncv3_test sslmode=disable"
func TestMain(m *testing.M) {
logger = zerolog.New(os.Stdout).With().Timestamp().Logger().Output(zerolog.ConsoleWriter{
Out: os.Stderr,
TimeFormat: "15:04:05",
NoColor: true,
})
postgresConnectionString = testutils.PrepareDBConnectionString()
exitCode := m.Run()
os.Exit(exitCode)
}