CLI: Silence `status` command test
This check is expected to succeed and the status is expected to be printed to stdout rather than stderr. This change silences the status output. The status text was printed mistakenly previously because we captured stderr rather than stdout.
This commit is contained in:
parent
c328922a2a
commit
9f60325563
|
|
@ -121,7 +121,7 @@ defmodule RabbitMQCtlTest do
|
|||
|
||||
test "short node name without the host part connects properly" do
|
||||
command = ["status", "-n", "rabbit"]
|
||||
capture_io(:stderr, fn -> error_check(command, exit_ok()) end)
|
||||
capture_io(:stdio, fn -> error_check(command, exit_ok()) end)
|
||||
end
|
||||
|
||||
test "a non-existent command results in help message displayed" do
|
||||
|
|
|
|||
Loading…
Reference in New Issue