molecule-core/workspace-server
Molecule AI Core-BE aacf191b6a fix(handlers): restore db.DB after tests in activity_test.go, a2a_queue_test.go, handlers_test.go
All three files assigned db.DB = mockDB then deferred mockDB.Close() — on
test exit, db.DB still pointed to the closed mock. Subsequent tests in
alphabetical order hit sql.ErrConnDone when they tried to use the stale
connection. Fix: save prevDB := db.DB before each assignment and restore
via t.Cleanup(func() { db.DB = prevDB; mockDB.Close() }).

activity_test.go: 6 tests fixed (including 1 subtest loop). Also added
t.Fatalf for sqlmock.New() error (was silently ignored with _).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-14 12:16:48 +00:00
..
cmd fix(main): heal ADMIN_TOKEN placeholder in global_secrets on startup (#831) 2026-05-13 22:42:32 +00:00
internal fix(handlers): restore db.DB after tests in activity_test.go, a2a_queue_test.go, handlers_test.go 2026-05-14 12:16:48 +00:00
migrations
pkg/provisionhook
.air.toml
.ci-force
.gitignore
.golangci.yaml
Dockerfile fix(platform): install docker-cli-buildx in workspace-server image (mc#765 follow-up) 2026-05-12 22:14:46 -07:00
Dockerfile.dev
Dockerfile.tenant
entrypoint-tenant.sh
go.mod
go.sum