refactor: bundb - simplify newDB
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
b8bd8cd4df
commit
3c7db6d168
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue
Block a user