Skip to content

Commit 5b2b9e7

Browse files
committed
use lower version of timeout
1 parent e175d7a commit 5b2b9e7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

android_tests/lib/run.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ def start_driver(caps)
3939
driver = Appium::Driver.new(caps, true)
4040
# Tests expect methods defined on the minispec object
4141
Appium.promote_appium_methods Minitest::Test, driver
42-
driver.start_driver
42+
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)
4348
end
4449

4550
dir = File.expand_path(File.join(Dir.pwd, 'lib'))

0 commit comments

Comments
 (0)