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:
Michael Davis 2024-12-04 11:10:46 -05:00
parent c328922a2a
commit 9f60325563
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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