refactor: bundb - simplify newDB (#23)
continuous-integration/drone/push Build is passing Details

Reviewed-on: #23
This commit is contained in:
Dawid Wysokiński 2022-12-07 06:00:20 +00:00
parent a67b911e77
commit 0d6ee87cae
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{