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:
parent
22d6e9061a
commit
508b2cfaae
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue