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

Make sure to fire callback whenever handleCoverageResponse has fired #311

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

choongsan
Copy link

Reason:
on testem, callback will invoke afterTests and it will emit disconnect. There are rare occasions empty data gets into handleCoverageResponse.
Which skips emitting disconnect event and hence testem will invoke processExit and it will eventually time outs no matter what timeout value is.
Invoking callback regardless of data's value will make sure testem to invoke afterTests

cc @rwjblue

Reason:
  on testem, callback will invoke afterTests and it will emit disconnect. There are rare occasions empty data gets into handleCoverageResponse.
Which skips emitting disconnect event and hence testem will invoke processExit and it will eventually time outs no matter what timeout value is.
Invoking callback regardless of data's value will make sure testem to invoke afterTests
@rwjblue rwjblue added the bug label Apr 26, 2021
@rwjblue rwjblue merged commit d63d315 into ember-cli-code-coverage:master Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants