# Point the whole test suite at the persistent shared Postgres managed by # `scripts/test-server.sh up`. With TC_TEST_DATABASE_URL set, tc-testkit never # starts a per-test `postgres` testcontainer (it takes its `_container: None` # branch), so a killed/panicking/orphaned `cargo test` has nothing to leak. # This is the durable fix for the runaway `postgres:11-alpine` containers. # # Not forced: an explicit TC_TEST_DATABASE_URL in the environment still wins # (e.g. CI pointing at its own server). If the shared server is down, tests # fail fast with a connection error instead of silently leaking containers — # run `scripts/test-server.sh up` first. [env] TC_TEST_DATABASE_URL = "postgres://postgres:postgres@127.0.0.1:54331/postgres"