fix(tests): close sockets to remove a Jest warning about resources outliving their tests

This commit is contained in:
Daniel Kennedy
2026-01-30 08:44:11 -05:00
parent ae29a2751b
commit 3a0ba4ba74
2 changed files with 5 additions and 0 deletions
@@ -238,6 +238,8 @@ describe('basics', () => {
'https://postman-echo.com/get'
)
expect(res.message.statusCode).toBe(200)
// Consume the response to close the socket
res.message.destroy()
})
it('does basic http delete request', async () => {