Permalink
Browse files

lower timeouts in specs to improve test speed

  • Loading branch information...
1 parent 39e5adb commit 644d636998472b042c5b1a62cd8a56ed2d364944 @rubiii rubiii committed Mar 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/savon/options_spec.rb
@@ -73,7 +73,7 @@
context "global :open_timeout" do
it "makes the client timeout after n seconds" do
non_routable_ip = "http://10.255.255.1"
- client = new_client(:endpoint => non_routable_ip, :open_timeout => 1)
+ client = new_client(:endpoint => non_routable_ip, :open_timeout => 0.1)
expect { client.call(:authenticate) }.to raise_error { |error|
if error.kind_of? Errno::EHOSTUNREACH
@@ -90,7 +90,7 @@
context "global :read_timeout" do
it "makes the client timeout after n seconds" do
- client = new_client(:endpoint => @server.url(:timeout), :open_timeout => 1, :read_timeout => 1)
+ client = new_client(:endpoint => @server.url(:timeout), :open_timeout => 0.1, :read_timeout => 0.1)
expect { client.call(:authenticate) }.
to raise_error(HTTPClient::ReceiveTimeoutError)

0 comments on commit 644d636

Please sign in to comment.