提交 1ecdd7e8 编写于 作者: Y yuuji.yaginuma

Return a non zero code when can not connect to redis in CI

上级 8f2490b5
......@@ -7,7 +7,8 @@ def setup
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 @@ def setup
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册