-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server is not closed when close() is used #1224
Labels
Comments
I am going to close this as solved. Feel free to reopen if you still have issues with this. |
@deepj maybe, however this is not a Koa thing. But how node http works and supertest, there's no point for Koa docs to mention all caveats of cross usage of node packages. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I'm trying to write integration test for my first Koa application (I come from Rubyland originally).
I noticed with every new import of my server in my integration tests, the number of request calls inside koa router is increasing. What that means? When I make one call, inside Koa server generates the request multiple times how many times the server is listened.
When the second spec is called. The request inside Koa route is called twice.
These tests pass but there are other which depends on number of data in DB. I don't know what's wrong.
My app looks
I use the latest
koa
,mocha
,chai
,supertest
includingesm
for enabling ES module support. I tried multiple options and this is the latest iteration of that. It looks the server doesn't close after callingclose()
. In this case, there is no connection made during server initialization so the closing would be fine.My dependencies:
The text was updated successfully, but these errors were encountered: