Browse files

check for timeout error

  • Loading branch information...
1 parent 9fd9340 commit 4e93b61a5c7d5e46268ebbe59534da7ea4738e28 @igrigorik committed Sep 21, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 spec/client_spec.rb
View
1 spec/client_spec.rb
@@ -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.errback {
+ http.error.should == Errno::ETIMEDOUT
(Time.now.to_i - t).should <= 1
EventMachine.stop
}

0 comments on commit 4e93b61

Please sign in to comment.