beads/internal/testutil
Vishnu J e8027949d9
fix(doctor): reap leaked test dolt sql-servers from CGO_ENABLED=0 suites (#5917)
CGO_ENABLED=0 doctor tests compiled no TestMain, so AutoStart left
detached sql-servers running after t.TempDir() cleanup. The cgo
TestMains already swept, but t.TempDir() (Go 1.24+ uses GOTMPDIR)
was not under the sweep root, and cwdDeleted never fired while the
live child still held the tree.

Pin GOTMPDIR/TMPDIR to a suite-owned root before m.Run() and sweep
that root on exit. Add a !cgo TestMain for cmd/bd/doctor and
cmd/bd/doctor/fix.

Fixes #5631
2026-09-02 18:11:33 -07:00
..
fixtures fix(ci): get nightly full tests passing (#2835) 2026-03-26 09:52:03 -07:00
integration fix(ci): get nightly full tests passing (#2835) 2026-03-26 09:52:03 -07:00
testdata testutil: migrate test Dolt server from binary-spawning to testcontainers 2026-02-28 21:12:41 -08:00
container_provider.go /{cmd,internal}: pr feedback 2026-04-08 15:03:32 -07:00
container_provider_windows.go /{cmd,internal}: some cleanup 2026-04-08 14:45:18 -07:00
dockercontext.go fix(test): pin DOCKER_HOST from the active docker context before TestMain swaps HOME (bd-84kos) (#5391) 2026-08-07 00:32:40 -07:00
dockercontext_test.go fix(test): pin DOCKER_HOST from the active docker context before TestMain swaps HOME (bd-84kos) (#5391) 2026-08-07 00:32:40 -07:00
git_test_hooks.go Test isolation follow-up: consolidate and guard hooksPath leakage (#2234) (#2237) 2026-03-01 14:41:08 -08:00
suite_temp.go fix(doctor): reap leaked test dolt sql-servers from CGO_ENABLED=0 suites (#5917) 2026-09-02 18:11:33 -07:00
suite_temp_test.go fix(doctor): reap leaked test dolt sql-servers from CGO_ENABLED=0 suites (#5917) 2026-09-02 18:11:33 -07:00
testdoltbranch.go fix(testutil): stop dolt test suites from silently opening the ambient shared server (#5837) 2026-08-19 08:54:06 -07:00
testdoltbranch_test.go fix(testutil): stop dolt test suites from silently opening the ambient shared server (#5837) 2026-08-19 08:54:06 -07:00
testdoltcommon.go Fix E2BIG when runDoltSQL passes large schema SQL as a single argv (#5846) 2026-08-19 08:51:07 -07:00
testdoltserver.go fix(dolt): purge dropped databases in bench-store cleanup, with a regression gate (#5792) 2026-08-24 14:05:03 -07:00
testdoltserver_env_test.go fix(testutil): stop dolt test suites from silently opening the ambient shared server (#5837) 2026-08-19 08:54:06 -07:00
testdoltserver_windows.go fix(dolt): purge dropped databases in bench-store cleanup, with a regression gate (#5792) 2026-08-24 14:05:03 -07:00
tmpfs.go style: run gofmt across entire codebase (bd-nmk12) 2026-02-07 19:35:20 -08:00
tmpfs_test.go style: run gofmt across entire codebase (bd-nmk12) 2026-02-07 19:35:20 -08:00