paperclip/packages/db
Priya Raman 8e77fbdacb
fix(db): close test database clients before the embedded cluster stops
An embedded-Postgres test fixture stopped its cluster while test clients
still held open connections. The postgres.js driver could schedule a
deferred write on a connection whose backend had just died, and that
write threw past a bare timer callback and crashed the process. CI saw
this as a green shard that still exited 1 with an unhandled error.

Track every client the database package hands out, keyed by host and
port. The embedded-Postgres test fixture now ends every live client for
its cluster before it stops that cluster, so no client can outlive the
server it points at.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-08-27 18:25:23 +00:00
..
scripts
…
src fix(db): close test database clients before the embedded cluster stops 2026-08-27 18:25:23 +00:00
.gitattributes
…
CHANGELOG.md
…
drizzle.config.ts
…
package.json build(deps-dev): bump typescript from 5.9.3 to 7.0.2 (#11880) 2026-08-25 14:49:05 -07:00
tsconfig.json
…
vitest.config.ts
…