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

test/helper.rb -TimeoutEveryTestCase - set non MRI timeouts to 60 sec

US weekday late afternoon CI is often busy.  Several non MRI tests just took approx 45 sec.  Set value to 60.
This commit is contained in:
MSP-Greg 2020-09-14 17:08:56 -05:00
parent 0ab0eecb29
commit 18f1810c9c
No known key found for this signature in database
GPG key ID: D688DA4A77D8FA18

View file

@ -65,7 +65,7 @@ module TimeoutEveryTestCase
before_setup; setup; after_setup
# wrap timeout around test method only
::Timeout.timeout(RUBY_ENGINE == 'ruby' ? 45 : 45, TestTookTooLong) {
::Timeout.timeout(RUBY_ENGINE == 'ruby' ? 45 : 60, TestTookTooLong) {
self.send self.name
}
end
@ -73,7 +73,7 @@ module TimeoutEveryTestCase
Minitest::Test::TEARDOWN_METHODS.each do |hook|
capture_exceptions do
# wrap timeout around teardown methods, remove when they're stable
::Timeout.timeout(RUBY_ENGINE == 'ruby' ? 45 : 45, TestTookTooLong) {
::Timeout.timeout(RUBY_ENGINE == 'ruby' ? 45 : 60, TestTookTooLong) {
self.send hook
}
end