Fix tests for db type

This commit is contained in:
2025-02-22 22:32:38 +01:00
parent d47f7d7fb0
commit 25defa5b65
12 changed files with 68 additions and 128 deletions

View File

@@ -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",