Skip to content

Commit

Permalink
No need to require http libs, because errors classes are checked lazi…
Browse files Browse the repository at this point in the history
…ly now
  • Loading branch information
Alexey Chernenkov committed Aug 27, 2018
1 parent d47c8cb commit 4186857
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions spec/integration/curb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
end

it "it supports read timeout" do
require "curb"

request = HTTPI::Request.new(@server.url + "timeout")
request.read_timeout = 0.5 # seconds

Expand Down
2 changes: 0 additions & 2 deletions spec/integration/excon_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
end

it "it supports read timeout" do
require "excon"

request = HTTPI::Request.new(@server.url + "timeout")
request.read_timeout = 0.5 # seconds

Expand Down
2 changes: 0 additions & 2 deletions spec/integration/http_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
end

it "it supports read timeout" do
require "http"

request = HTTPI::Request.new(@server.url + "timeout")
request.read_timeout = 0.5 # seconds

Expand Down
2 changes: 0 additions & 2 deletions spec/integration/httpclient_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
end

it "it supports read timeout" do
require "httpclient"

request = HTTPI::Request.new(@server.url + "timeout")
request.read_timeout = 0.5 # seconds

Expand Down
2 changes: 0 additions & 2 deletions spec/integration/net_http_persistent_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
end

it "it supports read timeout" do
require "net/http/persistent"

request = HTTPI::Request.new(@server.url + "timeout")
request.read_timeout = 0.5 # seconds

Expand Down
2 changes: 0 additions & 2 deletions spec/integration/net_http_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@
end

it "it supports read timeout" do
require "net/http"

request = HTTPI::Request.new(@server.url + "timeout")
request.read_timeout = 0.5 # seconds

Expand Down

0 comments on commit 4186857

Please sign in to comment.