aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/check_postgres.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/check_postgres.rb')
-rw-r--r--Library/Formula/check_postgres.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Formula/check_postgres.rb b/Library/Formula/check_postgres.rb
index c33cf4720..84a59a12b 100644
--- a/Library/Formula/check_postgres.rb
+++ b/Library/Formula/check_postgres.rb
@@ -28,8 +28,7 @@ class CheckPostgres < Formula
test do
# This test verifies that check_postgres fails correctly, assuming
# that no server is running at that port.
- output = `#{bin}/check_postgres --action=connection --port=65432`
+ output = shell_output("#{bin}/check_postgres --action=connection --port=65432", 2)
assert output.include? "POSTGRES_CONNECTION CRITICAL"
- assert_equal 2, $?.exitstatus
end
end