mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
23 lines
502 B
Go
23 lines
502 B
Go
package sync3
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/matrix-org/sliding-sync/testutils"
|
|
"github.com/rs/zerolog"
|
|
)
|
|
|
|
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)
|
|
}
|