mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
22 lines
401 B
Go
22 lines
401 B
Go
package postgres_test
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
"github.com/formancehq/stack/libs/go-libs/logging"
|
|
"github.com/formancehq/stack/libs/go-libs/pgtesting"
|
|
)
|
|
|
|
func TestMain(t *testing.M) {
|
|
if err := pgtesting.CreatePostgresServer(); err != nil {
|
|
logging.Error(err)
|
|
os.Exit(1)
|
|
}
|
|
code := t.Run()
|
|
if err := pgtesting.DestroyPostgresServer(); err != nil {
|
|
logging.Error(err)
|
|
}
|
|
os.Exit(code)
|
|
}
|