1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

print server log in case integration test fails

This commit is contained in:
Konstantin Haase 2011-10-31 16:22:10 -07:00
parent 9a4e4d45f4
commit 112da9d4ff

View file

@ -38,6 +38,7 @@ class IntegrationTest < Test::Unit::TestCase
end end
end end
rescue Timeout::Error => e rescue Timeout::Error => e
$stderr.puts command, pipe.read if pipe
raise error || e raise error || e
ensure ensure
Process.kill("TERM", pipe.pid) if pipe Process.kill("TERM", pipe.pid) if pipe