Skip to content

Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.

Fix Windows CI: close SQLite before TempDir cleanup

Martin Vogel343f6e58ab79
diff --git a/internal/tools/snippet_test.go b/internal/tools/snippet_test.go
index 53d4e2c55..9252e7c88 100644
--- a/internal/tools/snippet_test.go
+++ b/internal/tools/snippet_test.go
@@ -47,6 +47,7 @@ func Run() {
if err != nil {
t.Fatal(err)
}
+ t.Cleanup(router.CloseAll)
projName := "test-project"
st, err := router.ForProject(projName)
diff --git a/internal/watcher/watcher_test.go b/internal/watcher/watcher_test.go
index 530a99b99..a75a2e985 100644
--- a/internal/watcher/watcher_test.go
+++ b/internal/watcher/watcher_test.go
@@ -19,6 +19,7 @@ func newTestRouter(t *testing.T, projectName, rootPath string) *store.StoreRoute
if err != nil {
t.Fatal(err)
}
+ t.Cleanup(r.CloseAll)
if projectName != "" {
st, err := r.ForProject(projectName)
if err != nil {