We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e175d7a commit 5b2b9e7Copy full SHA for 5b2b9e7
1 file changed
android_tests/lib/run.rb
@@ -39,7 +39,12 @@ def start_driver(caps)
39
driver = Appium::Driver.new(caps, true)
40
# Tests expect methods defined on the minispec object
41
Appium.promote_appium_methods Minitest::Test, driver
42
- driver.start_driver
+
43
+ # Use bounded HTTP timeouts in tests to avoid CI hangs on stuck requests.
44
+ open_timeout = Integer(ENV.fetch('APPIUM_TEST_OPEN_TIMEOUT', '120'))
45
+ read_timeout = Integer(ENV.fetch('APPIUM_TEST_READ_TIMEOUT', '300'))
46
47
+ driver.start_driver(open_timeout: open_timeout, read_timeout: read_timeout)
48
end
49
50
dir = File.expand_path(File.join(Dir.pwd, 'lib'))
0 commit comments