Permalink
Browse files

Force ECONNRESET when read returns nil

  • Loading branch information...
1 parent 9055db8 commit 7ce2fb1104ceb40a931328fd63e3e6a2db42031f @evanphx evanphx committed Oct 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/test_integration.rb
View
@@ -102,7 +102,7 @@ def test_restart_closes_keepalive_sockets
assert_raises Errno::ECONNRESET do
Timeout.timeout(2) do
- s.read(2)
+ raise Errno::ECONNRESET unless s.read(2)
end
end
@@ -128,7 +128,7 @@ def test_restart_closes_keepalive_sockets_workers
assert_raises Errno::ECONNRESET do
Timeout.timeout(2) do
- s.read(2)
+ raise Errno::ECONNRESET unless s.read(2)
end
end

0 comments on commit 7ce2fb1

Please sign in to comment.