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:
commit
1b302a5de0
1 changed files with 4 additions and 1 deletions
|
@ -72,7 +72,10 @@ module TimeoutEveryTestCase
|
||||||
|
|
||||||
Minitest::Test::TEARDOWN_METHODS.each do |hook|
|
Minitest::Test::TEARDOWN_METHODS.each do |hook|
|
||||||
capture_exceptions do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue