Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
setTimout in socket.io prevents Karma from exiting on Windows #1109
Taken from karma-runner/gulp-karma#5
There is a setTimeout in socket.io (https://github.com/Automattic/socket.io/blob/0.9/lib/transport.js#L216) that prevents Karma from exiting. Interestingly this timeout prevents Karma from exiting on Windows only, OSX and Linux is not affected.
Yesterday my colleague have discovered that this could be worked-around by explicitly disconnecting each socket on Karma exit (basically adding
Would be grateful for any input here, especially from the ones knowing karma + socket.io interactions a bit better.