mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Fix tests for db type
This commit is contained in:
@@ -61,7 +61,7 @@ func setupTestHarness(t *testing.T) *testHarness {
|
||||
t.Fatalf("Failed to initialize secrets service: %v", err)
|
||||
}
|
||||
|
||||
database, err := db.NewTestDB(":memory:", secretsSvc)
|
||||
database, err := db.NewTestDB(secretsSvc)
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to initialize test database: %v", err)
|
||||
}
|
||||
@@ -99,7 +99,7 @@ func setupTestHarness(t *testing.T) *testHarness {
|
||||
|
||||
// Create test config
|
||||
testConfig := &app.Config{
|
||||
DBURL: ":memory:",
|
||||
DBURL: "sqlite://:memory:",
|
||||
WorkDir: tempDir,
|
||||
StaticPath: "../testdata",
|
||||
Port: "8081",
|
||||
|
||||
Reference in New Issue
Block a user