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:
parent
0ab0eecb29
commit
18f1810c9c
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue