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

Merge pull request #2354 from MSP-Greg/test-teardown-timeout

Add back timeout for teardown [changelog skip]
This commit is contained in:
Nate Berkopec 2020-09-07 19:56:30 -07:00 committed by GitHub
commit 1b302a5de0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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