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:
parent
9055db88e8
commit
7ce2fb1104
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue