mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
The test created a postgres client with createDb() inside the test body but never closed it. The embedded Postgres process could then shut down while the client still had a queued write, so the driver later threw an unhandled TypeError from a null socket. Close the client in afterAll, before the embedded database stops, matching the pattern every other integration test in this file's directory already uses. Co-authored-by: Paperclip <noreply@paperclip.ing>