mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
registerPostgresNullSocketGuard() added one uncaughtException listener on every call. A caller that runs it many times in one process, such as a test suite that calls startServer() repeatedly, crossed Node's default listener-count warning threshold. Skip the process.on call when the guard's own listener function is already registered. Also extend the unrelated-crash fixture scenario to assert the child process reports the error message and the stack, and add a test that proves a second registration adds no second listener. Co-authored-by: Paperclip <noreply@paperclip.ing>