From 0d6ee87cae77a61cbf5199cf0005f54152bd7166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Wysoki=C5=84ski?= Date: Wed, 7 Dec 2022 06:00:20 +0000 Subject: [PATCH] refactor: bundb - simplify newDB (#23) Reviewed-on: https://gitea.dwysokinski.me/twhelp/sessions/pulls/23 --- internal/bundb/bundb_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/bundb/bundb_test.go b/internal/bundb/bundb_test.go index 1441502..8395001 100644 --- a/internal/bundb/bundb_test.go +++ b/internal/bundb/bundb_test.go @@ -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{