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

30s delay in karma finish due to unclean websocket close #111

Closed
scottohara opened this issue Mar 29, 2016 · 2 comments
Closed

30s delay in karma finish due to unclean websocket close #111

scottohara opened this issue Mar 29, 2016 · 2 comments

Comments

@scottohara
Copy link
Owner

Previously in our gulpfile, the startKarma function used a default callback for Karma.Server (require('karma').Server(config, callback)), which was effectively a call to process.exit(exitCode) as soon as the Karma run finished.

Now that we have a test:ci task that runs both test:src and test:build; we don't want to kill the process as soon as one test suite finishes...we want to wait until both have finished; so now we pass a different callback, to prevent process.exit() from being called.

However, there seems to be a ~30s delay between the Karma run finishing, and the gulp process ending. Anecdotally, this only seems to be when coverage is run, i.e.

  • gulp test:src - includes coverage, ~30s delay between the Karma run finishing and the gulp process exiting
  • gulp test:build - no coverage, gulp process exits immediately after the Karma run finishes
  • gulp test:ci - runs both of the above in parallel, ~30s delay between the Karma run finishing and the gulp process exiting

Suggestion is that this might be due to unclean socket close: karma-runner/karma#1788

@toddpi314
Copy link

toddpi314 commented Nov 15, 2016

Seeing this on [email protected], [email protected], [email protected].
This sucker is burning of hours on Jenkins... Pretty positive it is a karma issue.

@scottohara
Copy link
Owner Author

This becomes redundant with the move to webpack

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

No branches or pull requests

2 participants