-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rb] should not need long client timeout in tests #16847
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
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
User description
Whenever a ruby job gets into trouble, it hangs the build for hours unnecessarily.
💥 What does this PR do?
2030 seconds for tests🔧 Implementation Notes
2030 seconds should be plenty for everything we're doing.💡 Additional Considerations
Some remote tests and some large file transfer tests wanted 30 seconds. Could tweak further, this is easiest. Will adjust more if problems.
PR Type
Enhancement
Description
Reduces read timeout to 20 seconds for test drivers
Adds configurable http_client parameter to create_driver!
Simplifies driver instantiation logic with ternary operator
Diagram Walkthrough
File Walkthrough
test_environment.rb
Add configurable http_client with 20s timeoutrb/spec/integration/selenium/webdriver/spec_support/test_environment.rb
http_clientparameter tocreate_driver!method with default20-second read timeout
optshash for cleanercode
clients