aboutsummaryrefslogtreecommitdiffstats
path: root/activejob/test/support/integration/adapters/que.rb
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-10-17 17:56:59 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-10-19 07:45:47 +0900
commit096cb88ce7838472c09e87feb7092c30ad21f7f3 (patch)
treeb7f5bd5bd468816a129857e05838817d9184c64e /activejob/test/support/integration/adapters/que.rb
parentb0f3070209499474d139ad46336eda9c57c16e88 (diff)
downloadrails-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/que.rb')
-rw-r--r--activejob/test/support/integration/adapters/que.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activejob/test/support/integration/adapters/que.rb b/activejob/test/support/integration/adapters/que.rb
index 2e7d327b37..f231e5e12d 100644
--- a/activejob/test/support/integration/adapters/que.rb
+++ b/activejob/test/support/integration/adapters/que.rb
@@ -32,7 +32,8 @@ module QueJobsManager
rescue Sequel::DatabaseConnectionError
puts "Cannot run integration tests for que. To be able to run integration tests for que you need to install and start postgresql.\n"
- exit
+ status = ENV["CI"] ? false : true
+ exit status
end
def stop_workers