RestApiv2/internal/bd/bd_test.go

20 lines
268 B
Go

package bd_test
import (
"os"
"testing"
)
var (
database string
)
func TestMain(m *testing.M) {
database := os.Getenv("DATABASE_URL")
if database == "" {
database = "host=localhost user=test password=test dbname=test sslmode=disable"
}
os.Exit(m.Run())
}