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

fix(launcher): cancel kill timeout when process exits cleanly #1051

Conversation

pkozlowski-opensource
Copy link
Member

By default browsers are killed with process.kill() but it might
happen that a process doesn't play nicelly and doesn't exit so
there is a timeout after which a process is SIGKILL-ed. Before
this commit the mentioned timeout wasn't cleared on clean process
exit, preventing Karma from exiting just after all tests were run.

Fixes #946

By default browsers are killed with `process.kill()` but it might
happen that a process doesn't play nicelly and doesn't exit so
there is a timeout after which a process is SIGKILL-ed. Before
this commit the mentioned timeout wasn't cleared on clean process
exit, preventing Karma from exiting just after all tests were run.

Fixes karma-runner#946
@pkozlowski-opensource
Copy link
Member Author

@vojtajina this is my lousy attempt at fixing #946 - I feel bad about not including tests but not sure if this is worth it here.... and if this the right fix in the first place...

Would be happy to amend the commit if there is a better approach.

@pkozlowski-opensource
Copy link
Member Author

wwwoooooppps, looks like I've messed up existing tests. Going to close this PR for now till the things are resolved, sorry for the noise...

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

Successfully merging this pull request may close these issues.

Process Launcher does not clean up sigkill timeout
1 participant