supertest icon indicating copy to clipboard operation
supertest copied to clipboard

Server not closed if used in async/await

Open entropitor opened this issue 7 years ago • 3 comments

When I await a supertest request inside an async function, the server is not closed (like in .end()) so I have to do this manually. Is this known? How can I fix it?

entropitor avatar Sep 18 '17 12:09 entropitor

This issue has been open for two years and no response, obviously 25 people have the same issue.

bmarkovic avatar Nov 06 '19 08:11 bmarkovic

Anyone to create a PR?

rimiti avatar Nov 06 '19 12:11 rimiti

same problem happened to me

"jest": "^27.0.6" "supertest": "^6.1.4"

Dylan0916 avatar Aug 07 '21 03:08 Dylan0916