1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Force ECONNRESET when read returns nil

This commit is contained in:
Evan Phoenix 2012-10-13 19:25:17 -07:00
parent 9055db88e8
commit 7ce2fb1104

View file

@ -102,7 +102,7 @@ class TestIntegration < Test::Unit::TestCase
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 @@ class TestIntegration < Test::Unit::TestCase
assert_raises Errno::ECONNRESET do
Timeout.timeout(2) do
s.read(2)
raise Errno::ECONNRESET unless s.read(2)
end
end