Files

23 lines
405 B
Go

package bunpaginate_test
import (
"os"
"testing"
"github.com/formancehq/stack/libs/go-libs/logging"
"github.com/formancehq/stack/libs/go-libs/pgtesting"
)
func TestMain(m *testing.M) {
if err := pgtesting.CreatePostgresServer(); err != nil {
logging.Error(err)
os.Exit(1)
}
code := m.Run()
if err := pgtesting.DestroyPostgresServer(); err != nil {
logging.Error(err)
}
os.Exit(code)
}