1
0
Fork 0
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:
Konstantin Haase 2012-03-18 13:06:44 +01:00
parent 752faa3073
commit 9d50905236

View file

@ -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