1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

leak_stack_on_error in test environment (#1557)

Fixes #1554
This commit is contained in:
Stefan Wrobel 2018-05-09 10:45:41 -07:00 committed by Nate Berkopec
parent 119b6eb4ad
commit bcbe811333

View file

@ -22,6 +22,10 @@ module Puma
@options[:environment] == "development"
end
def test?
@options[:environment] == "test"
end
def log(str)
@events.log str
end
@ -168,7 +172,7 @@ module Puma
server.early_hints = true
end
unless development?
unless development? || test?
server.leak_stack_on_error = false
end