-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[rb] Fix child process terminate method when a process is already terminated #15789
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
base: trunk
Are you sure you want to change the base?
[rb] Fix child process terminate method when a process is already terminated #15789
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
…r' into bugfix/rb_fix_child_process_error
…r' into bugfix/rb_fix_child_process_error
User description
🔗 Related Issues
Original issue #14689
💥 What does this PR do?
This PR adds a rescue for the terminate method on child process so it does not fail when there is nothing to terminate
🔄 Types of changes
PR Type
Bug fix, Tests
Description
Add error handling to
terminate
for missing processesIntroduce unit test for
terminate
error handlingChanges walkthrough 📝
child_process.rb
Add error handling to terminate method for missing processes
rb/lib/selenium/webdriver/common/child_process.rb
Errno::ECHILD
andErrno::ESRCH
interminate
child_process_spec.rb
Add test for terminate method error handling
rb/spec/unit/selenium/webdriver/common/child_process_spec.rb
terminate
does not raise error on killedprocess