fix: move dav.Service init from auth_test to user testmain

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-07-05 20:08:09 +01:00
co-authored by Sisyphus
parent 4879ca5a82
commit 30c9012562
2 changed files with 2 additions and 2 deletions
+2
View File
@@ -8,6 +8,7 @@ import (
"testing"
"crussell/db"
"crussell/internal/dav"
"crussell/testutils/jwt"
"crussell/testutils/testdb"
)
@@ -16,6 +17,7 @@ func TestMain(m *testing.M) {
pool := testdb.CreateTestDatabase("crussell_test_handlers_user")
db.Conn = db.NewPoolProxy(pool)
jwt.Init()
dav.Service = &dav.BaseService{}
testdb.SeedBaseline(pool)
code := m.Run()
testdb.DestroyTestDatabase(pool, "crussell_test_handlers_user")