fix(db): use separate DSN for both drivers
This commit is contained in:
No files matched your search
+3
-2
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user