refactor: bundb - simplify newDB #23

Merged
Kichiyaki merged 1 commits from refactor/bundb-tests into master 2022-12-07 06:00:20 +00:00
1 changed files with 6 additions and 0 deletions

View File

@ -35,6 +35,12 @@ func newDB(tb testing.TB) *bun.DB {
return newDBWithDSN(tb, dsn)
}
return newDBDockertest(tb)
}
func newDBDockertest(tb testing.TB) *bun.DB {
tb.Helper()
q := url.Values{}
q.Add("sslmode", "disable")
dsn := &url.URL{