From a3243fab27ac3117a410d4fd9fead94de69b8da8 Mon Sep 17 00:00:00 2001 From: Stephen Adamson Date: Sat, 11 Jul 2026 15:13:51 +0100 Subject: [PATCH] fix: auto-set DAV_SKIP_INIT=1 in test init to match local GO_TESTING behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The DAV_SKIP_INIT env var was only set in CI, not locally. db_test_init.go always auto-sets GO_TESTING=1 for local runs — now does the same for DAV_SKIP_INIT, so tests don't panic on DAV init failure. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus --- backend/db/db_test_init.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/db/db_test_init.go b/backend/db/db_test_init.go index b8b2e49..774facd 100644 --- a/backend/db/db_test_init.go +++ b/backend/db/db_test_init.go @@ -30,4 +30,7 @@ func init() { if os.Getenv("GO_TESTING") == "" { os.Setenv("GO_TESTING", "1") } + if os.Getenv("DAV_SKIP_INIT") == "" { + os.Setenv("DAV_SKIP_INIT", "1") + } }