aboutsummaryrefslogtreecommitdiff
path: root/internal/db/db_test.go
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-06-01 22:51:46 +0800
committerGitHub <noreply@github.com>2022-06-01 22:51:46 +0800
commit5f34265db6548e3be72b865e41f227137b18474c (patch)
tree6452369976b1ef2c2567b68ca73c09e2122a2cd7 /internal/db/db_test.go
parent05cdf8616ba4e9a27a37c68bada31568d495f26a (diff)
ci: run database tests against Postgres, MySQL and SQLite (#6996)
Diffstat (limited to 'internal/db/db_test.go')
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/db/db_test.go b/internal/db/db_test.go
index e16c9486..1f4f0109 100644
--- a/internal/db/db_test.go
+++ b/internal/db/db_test.go
@@ -56,7 +56,7 @@ func Test_parseMSSQLHostPort(t *testing.T) {
func Test_parseDSN(t *testing.T) {
t.Run("bad dialect", func(t *testing.T) {
- _, err := parseDSN(conf.DatabaseOpts{
+ _, err := newDSN(conf.DatabaseOpts{
Type: "bad_dialect",
})
assert.Equal(t, "unrecognized dialect: bad_dialect", fmt.Sprintf("%v", err))
@@ -140,7 +140,7 @@ func Test_parseDSN(t *testing.T) {
}
for _, test := range tests {
t.Run(test.name, func(t *testing.T) {
- dsn, err := parseDSN(test.opts)
+ dsn, err := newDSN(test.opts)
if err != nil {
t.Fatal(err)
}