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

This commit is contained in:
Daniel Kennedy authored and GitHub committed 2026-02-13 12:05:37 -05:00
1 parent ddf55ba268
commit c04c2248a7
1 file changed
+2
+2
View File
@@ -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 () => {