Skip to content
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

CircleCI hangs when mocha isn't force-exitting tests #63

Closed
ryanhallcs opened this issue Sep 18, 2019 · 1 comment
Closed

CircleCI hangs when mocha isn't force-exitting tests #63

ryanhallcs opened this issue Sep 18, 2019 · 1 comment
Labels

Comments

@ryanhallcs
Copy link
Contributor

As of mocha >= 4, tests do not auto-exit without a flag - orphaned async/unresolved promises/open connections will force a test suite to remain running indefinitely

Jackrabbit's mocha lib is now at 6 and the mocha options in package.json set the force-exit flag to true to work around the hanging (but passing) tests in CircleCI

I have not been able to replicate in docker-compose or locally (tests exit). This issue is to track cleaning up the tests to close out.

A good example is this test: https://github.com/pagerinc/jackrabbit/blob/master/test/jackrabbit.test.js#L58-L78 - even after adding the .close() on the connection, the test will hang in mocha

@ryanhallcs
Copy link
Contributor Author

closed in #64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant