Skip to content

Commit

Permalink
check for timeout error
Browse files Browse the repository at this point in the history
  • Loading branch information
igrigorik committed Sep 21, 2012
1 parent 9fd9340 commit 4e93b61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/client_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ def failed(http=nil)
http = EventMachine::HttpRequest.new('http://127.0.0.1:8090/timeout', :inactivity_timeout => 0.1).get http = EventMachine::HttpRequest.new('http://127.0.0.1:8090/timeout', :inactivity_timeout => 0.1).get


http.errback { http.errback {
http.error.should == Errno::ETIMEDOUT
(Time.now.to_i - t).should <= 1 (Time.now.to_i - t).should <= 1
EventMachine.stop EventMachine.stop
} }
Expand Down

0 comments on commit 4e93b61

Please sign in to comment.