mirror of
https://github.com/hanzo-fi/webhooks.git
synced 2026-10-30 20:32:55 +00:00
22 lines
474 B
Go
22 lines
474 B
Go
package postgres_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hanzo-fi/go-libs/v2/testing/docker"
|
|
"github.com/hanzo-fi/go-libs/v2/testing/utils"
|
|
|
|
"github.com/hanzo-fi/go-libs/v2/logging"
|
|
"github.com/hanzo-fi/go-libs/v2/testing/platform/pgtesting"
|
|
)
|
|
|
|
var srv *pgtesting.PostgresServer
|
|
|
|
func TestMain(m *testing.M) {
|
|
utils.WithTestMain(func(t *utils.TestingTForMain) int {
|
|
srv = pgtesting.CreatePostgresServer(t, docker.NewPool(t, logging.Testing()))
|
|
|
|
return m.Run()
|
|
})
|
|
}
|