Permalink
Browse files

Raise ECONNRESET

  • Loading branch information...
1 parent f7e8f2a commit d27049894bea3d25888fe3f1f6eec9a6b36a5e82 @evanphx evanphx committed Oct 14, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/test_integration.rb
View
@@ -102,8 +102,9 @@ def test_restart_closes_keepalive_sockets
assert_raises Errno::ECONNRESET do
Timeout.timeout(2) do
- r = s.read(2)
- p :read_ret => r
+ if s.read(2).nil?
+ raise Errno::ECONNRESET
+ end
end
end

0 comments on commit d270498

Please sign in to comment.