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

Add back timeout for teardown

#2318 removed the timeout code for test teardown.  It should not be needed, but some CI jobs intermittently lock up.  Without it, we can't see which test(s) caused the lock up.
This commit is contained in:
MSP-Greg 2020-09-07 16:40:47 -05:00
parent 22d6e9061a
commit 508b2cfaae
No known key found for this signature in database
GPG key ID: D688DA4A77D8FA18

View file

@ -72,7 +72,10 @@ module TimeoutEveryTestCase
Minitest::Test::TEARDOWN_METHODS.each do |hook|
capture_exceptions do
self.send hook
# wrap timeout around teardown methods, remove when they're stable
::Timeout.timeout(RUBY_ENGINE == 'ruby' ? 60 : 120, TestTookTooLong) {
self.send hook
}
end
end
end