- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 8.6k
[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
[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
terminatefor missing processesIntroduce unit test for
terminateerror handlingChanges walkthrough 📝
child_process.rb
Add error handling to terminate method for missing processesrb/lib/selenium/webdriver/common/child_process.rb
Errno::ECHILDandErrno::ESRCHinterminatechild_process_spec.rb
Add test for terminate method error handlingrb/spec/unit/selenium/webdriver/common/child_process_spec.rb
terminatedoes not raise error on killedprocess