mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
also deal with connection reset in integration test
This commit is contained in:
parent
fa1d32382b
commit
35e4394275
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ module IntegrationHelper
|
||||||
def alive?
|
def alive?
|
||||||
3.times { get('/ping') }
|
3.times { get('/ping') }
|
||||||
true
|
true
|
||||||
rescue Errno::ECONNREFUSED => error
|
rescue Errno::ECONNREFUSED, Errno::ECONNRESET => error
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue