fix: replace GO_TESTING with DAV_SKIP_INIT for DAV service initialization
CI / Env docs check (push) Failing after 17s
CI / Docker compose check (push) Successful in 1m29s
CI / Secrets scan (push) Successful in 1m33s
CI / Frontend major deps (push) Successful in 1m31s
CI / Go build (push) Successful in 1m33s
CI / Frontend deps check (push) Successful in 1m33s
CI / Frontend build (push) Successful in 1m32s
CI / Nginx config check (push) Successful in 1m33s
CI / go mod tidy (push) Successful in 1m18s
CI / Go vulnerabilities (push) Failing after 0s
CI / Knip (push) Failing after 0s
CI / Frontend a11y check (push) Failing after 0s
CI / Svelte strict check (push) Has been skipped
CI / Frontend QC (audit) (push) Has been skipped
CI / Frontend QC (typecheck) (push) Has been skipped
CI / Frontend QC (lint) (push) Has been skipped
CI / Go vet (prod) (push) Successful in 1m31s
CI / Go vet (dev) (push) Successful in 1m51s
CI / Staticcheck (prod) (push) Successful in 2m27s
CI / Staticcheck (dev) (push) Successful in 2m55s
CI / golangci-lint (push) Successful in 3m13s
CI / Security scan (prod) (push) Successful in 4m8s
CI / Security scan (dev) (push) Successful in 4m15s
CI / Tests (prod) (push) Has been skipped
CI / Tests (dev) (push) Has been skipped
CI / Race (prod) (push) Has been skipped
CI / Race (dev) (push) Has been skipped

This commit is contained in:
2026-07-11 15:06:16 +01:00
parent f147be0b99
commit 4d87bf791f
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ var Service *BaseService
func init() {
if err := connect(); err != nil {
// Don't fatal in test mode - tests will use testdb instead
if os.Getenv("GO_TESTING") != "" {
if os.Getenv("DAV_SKIP_INIT") != "" {
return
}
panic("failed to initialize dev service: " + err.Error())
+1 -1
View File
@@ -15,7 +15,7 @@ var Service *BaseService
func init() {
if err := connect(); err != nil {
// Don't fatal in test mode - tests will use testdb instead
if os.Getenv("GO_TESTING") != "" {
if os.Getenv("DAV_SKIP_INIT") != "" {
return
}
panic("failed to initialize prod service: " + err.Error())