Protocol tests were the source of ~35 beads_t* databases on the prod Dolt server per test run. Each test called bd init with a random prefix (t + 8 hex chars), creating beads_t<hex> databases on port 3307. - Add TestMain to protocol tests that starts a dedicated test Dolt server - Pass BEADS_DOLT_PORT and BEADS_TEST_MODE through workspace env() so the compiled bd subprocess connects to the test server - Add beads_t to staleDatabasePrefixes in both dolt.go and doctor/server.go as a safety net for cleaning legacy pollution Verified: full go test ./... now creates zero test databases on prod. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| blocked_status_test.go | ||
| blocked_test.go | ||
| comments_test.go | ||
| defer_test.go | ||
| exit_codes_test.go | ||
| input_validation_test.go | ||
| lifecycle_test.go | ||
| protocol_test.go | ||
| stale_test.go | ||
| status_validation_test.go | ||