mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
run tests with bundler since that is what our users run (#1317)
This commit is contained in:
parent
2cb2357d39
commit
0886aef3d0
5 changed files with 25 additions and 5 deletions
|
|
@ -36,9 +36,13 @@ def hit(uris)
|
|||
end
|
||||
|
||||
module TimeoutEveryTestCase
|
||||
# our own subclass so we never confused different timeouts
|
||||
class TestTookTooLong < Timeout::Error
|
||||
end
|
||||
|
||||
def run(*)
|
||||
if ENV['CI']
|
||||
::Timeout.timeout(Puma.jruby? ? 120 : 30) { super }
|
||||
::Timeout.timeout(Puma.jruby? ? 120 : 30, TestTookTooLong) { super }
|
||||
else
|
||||
super # we want to be able to use debugger
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue