Skip to content

Commit

Permalink
Add unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreydwalter committed Apr 29, 2024
1 parent e9aa39b commit 5aa6403
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/dbtest/db_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,18 @@ const (

var allDBs = map[string]func(tb testing.TB) *bun.DB{
pgName: pg,
/*pgxName: pgx,
pgxName: pgx,
mysql5Name: mysql5,
mysql8Name: mysql8,
mariadbName: mariadb,
sqliteName: sqlite,
mssql2019Name: mssql2019,
*/
}

func pg(tb testing.TB) *bun.DB {
dsn := os.Getenv("PG")
if dsn == "" {
dsn = "postgres://postgres:password@localhost:5432/test?sslmode=disable"
dsn = "postgres://postgres:postgres@localhost:5432/test?sslmode=disable"
}

sqldb := sql.OpenDB(pgdriver.NewConnector(pgdriver.WithDSN(dsn)))
Expand Down

0 comments on commit 5aa6403

Please sign in to comment.