Skip to content

Commit

Permalink
[rb] debug clients have fixed problem with non-nil open_timeout value…
Browse files Browse the repository at this point in the history
…s, switch to using library default
  • Loading branch information
titusfortner committed Mar 1, 2021
1 parent 2965e4e commit 8e62549
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions rb/lib/selenium/webdriver/remote/http/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ def http
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
end

# Defaulting open_timeout to nil to be consistent with Ruby 2.2 and earlier.
http.open_timeout = open_timeout
http.open_timeout = open_timeout if open_timeout
http.read_timeout = read_timeout if read_timeout

start(http)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module Http
it 'assigns default timeout to nil' do
http = client.send :http

expect(http.open_timeout).to eq nil
expect(http.open_timeout).to eq 60
expect(http.read_timeout).to eq 60
end

Expand Down

0 comments on commit 8e62549

Please sign in to comment.