refactor: bundb - simplify newDB
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
Dawid Wysokiński 2022-12-07 06:56:04 +01:00
parent b8bd8cd4df
commit 3c7db6d168
Signed by: Kichiyaki
GPG Key ID: B5445E357FB8B892
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{