From 096cb88ce7838472c09e87feb7092c30ad21f7f3 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Wed, 17 Oct 2018 17:56:59 +0900 Subject: Return a non zero code when can not connect to backend on CI --- activejob/test/support/integration/adapters/que.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'activejob/test/support/integration/adapters/que.rb') 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 -- cgit v1.2.3