mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
do not make assumptions about first log line in integration test (might be a warning)
This commit is contained in:
parent
752faa3073
commit
9d50905236
1 changed files with 0 additions and 6 deletions
|
@ -45,11 +45,6 @@ module IntegrationHelper
|
|||
at_exit { kill }
|
||||
end
|
||||
|
||||
def expect(str)
|
||||
return if log.size < str.size or log[0, str.size] == str
|
||||
raise "Server did not start properly:\n\n#{log}"
|
||||
end
|
||||
|
||||
def ping(timeout = 30)
|
||||
loop do
|
||||
return if alive?
|
||||
|
@ -57,7 +52,6 @@ module IntegrationHelper
|
|||
$stderr.puts command, log
|
||||
fail "timeout"
|
||||
else
|
||||
expect "loading"
|
||||
sleep 0.1
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue