MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / db.close.test.ts

File db.close.test.ts

apps/cloud/src/db/db.close.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Contract: the postgres pool finalizer must AWAIT the connection teardown.
2//
3// The cloud MCP auth seam (`makeMcpOrganizationAuthServices`) builds a fresh
4// postgres pool on EVERY `/mcp` request and closes it in its `acquireRelease`

Callers

nothing calls this directly

Calls 5

closePostgresFunction · 0.90
rejectFunction · 0.85
resolveMethod · 0.80
pushMethod · 0.80
resolveFunction · 0.50

Tested by

no test coverage detected