diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-10-17 17:56:59 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-10-19 07:45:47 +0900 |
commit | 096cb88ce7838472c09e87feb7092c30ad21f7f3 (patch) | |
tree | b7f5bd5bd468816a129857e05838817d9184c64e /activejob/test/support/integration/adapters/sneakers.rb | |
parent | b0f3070209499474d139ad46336eda9c57c16e88 (diff) | |
download | rails-096cb88ce7838472c09e87feb7092c30ad21f7f3.tar.gz rails-096cb88ce7838472c09e87feb7092c30ad21f7f3.tar.bz2 rails-096cb88ce7838472c09e87feb7092c30ad21f7f3.zip |
Return a non zero code when can not connect to backend on CI
Diffstat (limited to 'activejob/test/support/integration/adapters/sneakers.rb')
-rw-r--r-- | activejob/test/support/integration/adapters/sneakers.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activejob/test/support/integration/adapters/sneakers.rb b/activejob/test/support/integration/adapters/sneakers.rb index 965e6e2e6c..9af1619d8b 100644 --- a/activejob/test/support/integration/adapters/sneakers.rb +++ b/activejob/test/support/integration/adapters/sneakers.rb @@ -29,7 +29,8 @@ module SneakersJobsManager log: Rails.root.join("log/sneakers.log").to_s unless can_run? puts "Cannot run integration tests for sneakers. To be able to run integration tests for sneakers you need to install and start rabbitmq.\n" - exit + status = ENV["CI"] ? false : true + exit status end end |