From b166f3fbf44e7afb3c828829a6bc8c2ba83cde6d Mon Sep 17 00:00:00 2001 From: Samuel Sieg Date: Thu, 16 Mar 2023 08:29:10 +0100 Subject: [PATCH] Don't report exception here too --- test/cli/healthcheck_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/cli/healthcheck_test.rb b/test/cli/healthcheck_test.rb index a9adc353..55d1c9ec 100644 --- a/test/cli/healthcheck_test.rb +++ b/test/cli/healthcheck_test.rb @@ -47,6 +47,9 @@ class CliHealthcheckTest < CliTestCase end test "perform failing for unknown reason" do + # Prevent expected failures from outputting to terminal + Thread.report_on_exception = false + SSHKit::Backend::Abstract.any_instance.stubs(:execute) # No need to execute anything here SSHKit::Backend::Abstract.any_instance.stubs(:capture_with_info) .with(:curl, "--silent", "--output", "/dev/null", "--write-out", "'%{http_code}'", "--max-time", "2", "http://localhost:3999/up")