mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Return a non zero code when can not connect to redis in CI
This commit is contained in:
parent
8f2490b57f
commit
1ecdd7e8a7
2 changed files with 4 additions and 2 deletions
|
@ -7,7 +7,8 @@ module ResqueJobsManager
|
|||
Resque.logger = Rails.logger
|
||||
unless can_run?
|
||||
puts "Cannot run integration tests for resque. To be able to run integration tests for resque you need to install and start redis.\n"
|
||||
exit
|
||||
status = ENV["CI"] ? false : true
|
||||
exit status
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -18,7 +18,8 @@ module SidekiqJobsManager
|
|||
ActiveJob::Base.queue_adapter = :sidekiq
|
||||
unless can_run?
|
||||
puts "Cannot run integration tests for sidekiq. To be able to run integration tests for sidekiq you need to install and start redis.\n"
|
||||
exit
|
||||
status = ENV["CI"] ? false : true
|
||||
exit status
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue