beads/cmd/bd/protocol
mayor 83a02d8c89 fix: protocol tests now use isolated Dolt server instead of prod
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>
2026-02-23 23:07:39 -08:00
..
blocked_status_test.go test(protocol): split blocked-status test into separate file 2026-02-22 23:47:56 -05:00
blocked_test.go fix: include waits-for deps in bd blocked output (GH#2043) 2026-02-23 10:08:25 -08:00
comments_test.go fix: reject empty and whitespace-only comment text 2026-02-23 04:52:58 -05:00
defer_test.go fix: warn when bd defer --until date is in the past 2026-02-23 04:54:06 -05:00
exit_codes_test.go fix: exit non-zero when all close/update attempts fail (GH#2014) 2026-02-23 10:04:06 -08:00
input_validation_test.go fix: reject empty title and empty label on update/label add (GH#1994) 2026-02-23 10:05:06 -08:00
lifecycle_test.go fix: report correct status when reopen/undefer is a no-op (GH#2037) 2026-02-23 10:08:12 -08:00
protocol_test.go fix: protocol tests now use isolated Dolt server instead of prod 2026-02-23 23:07:39 -08:00
stale_test.go fix: reject non-positive --days flag on bd stale 2026-02-23 04:44:01 -05:00
status_validation_test.go fix: validate status on update against built-in + custom statuses (#2021) 2026-02-23 10:05:17 -08:00