1
0
Fork 0
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:
yuuji.yaginuma 2017-11-13 18:04:37 +09:00
parent 8f2490b57f
commit 1ecdd7e8a7
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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