fix(db): use separate DSN for both drivers

This commit is contained in:
sentriz
2025-12-05 17:52:29 +01:00
parent b67c1c14d2
commit 469649935e
13 changed files with 75 additions and 52 deletions

No files matched your search

+3 -2
View File
@@ -7,8 +7,9 @@ import (
"os"
"testing"
_ "github.com/jinzhu/gorm/dialects/sqlite"
"github.com/stretchr/testify/require"
"go.senan.xyz/gonic/deps"
)
func TestMain(m *testing.M) {
@@ -22,7 +23,7 @@ func TestGetSetting(t *testing.T) {
key := SettingKey(randKey())
value := "howdy"
testDB, err := NewMock()
testDB, err := NewMock(deps.DBDriverOptions())
if err != nil {
t.Fatalf("error creating db: %v", err)
}