Files
stack/ee/orchestration/internal/storage/main_test.go

22 lines
464 B
Go

package storage
import (
"testing"
"github.com/formancehq/go-libs/logging"
"github.com/formancehq/go-libs/testing/docker"
"github.com/formancehq/go-libs/testing/utils"
"github.com/formancehq/go-libs/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()
})
}