Don't report exception
This commit is contained in:
@@ -2,6 +2,9 @@ require_relative "cli_test_case"
|
|||||||
|
|
||||||
class CliHealthcheckTest < CliTestCase
|
class CliHealthcheckTest < CliTestCase
|
||||||
test "perform" do
|
test "perform" do
|
||||||
|
# Prevent expected failures from outputting to terminal
|
||||||
|
Thread.report_on_exception = false
|
||||||
|
|
||||||
SSHKit::Backend::Abstract.any_instance.stubs(:sleep) # No sleeping when retrying
|
SSHKit::Backend::Abstract.any_instance.stubs(:sleep) # No sleeping when retrying
|
||||||
SSHKit::Backend::Abstract.any_instance.stubs(:execute)
|
SSHKit::Backend::Abstract.any_instance.stubs(:execute)
|
||||||
.with(:docker, :container, :ls, "--all", "--filter", "name=healthcheck-app", "--quiet", "|", :xargs, :docker, :stop, raise_on_non_zero_exit: false)
|
.with(:docker, :container, :ls, "--all", "--filter", "name=healthcheck-app", "--quiet", "|", :xargs, :docker, :stop, raise_on_non_zero_exit: false)
|
||||||
|
|||||||
Reference in New Issue
Block a user