Three layers of defense against test pollution on production port 3307: 1. store.go: isTestDatabaseName() pattern-based guard refuses to CREATE DATABASE for any test-prefixed name on DefaultSQLPort (3307). Not env-var dependent. 2. testdoltserver.go: StartTestDoltServer now refuses to reuse port 3307 regardless of BEADS_TEST_MODE setting. Previous code only checked when BEADS_TEST_MODE=1, but TestMain sets that AFTER calling StartTestDoltServer. 3. testdoltbranch.go: SetupSharedTestDB refuses to connect to port 3307. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| testdoltbranch.go | ||
| testdoltserver.go | ||
| tmpfs.go | ||
| tmpfs_test.go | ||