-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix(mocha): have tests clean up once complete #1511
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
Conversation
mocha unit and integration tests will hang unless express (and optionally mongoose) are closed once the tests are complete
fix(mocha): have tests clean up once complete
Hmm, looks like this isn't passing
|
That's weird... What options did you pick to build this test set and command did you pass to gulp? |
It's the generator's tests. Run |
I backed-out this commit and ran the tests again and they ran fine. I'm going to revert this for now. I think what's happening is that you're closing connections after one suite of tests runs, so that the connection isn't available when the next suite of tests tries to run. |
Leave it with me, I'll figure out why this change is failing. |
I've figured out what's going on, why it's happening and a workaround. Should I submit a new PR or update this one? |
A new one please |
New PR #1536 uses a global |
mocha unit and integration tests will hang unless express (and
optionally mongoose) are closed once the tests are complete