Skip to content

Commit b747ff2

Browse files
the-mikedavismergify[bot]
authored andcommitted
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. (cherry picked from commit 9f60325)
1 parent b89b890 commit b747ff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbitmq_cli/test/rabbitmqctl_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ defmodule RabbitMQCtlTest do
121121

122122
test "short node name without the host part connects properly" do
123123
command = ["status", "-n", "rabbit"]
124-
capture_io(:stderr, fn -> error_check(command, exit_ok()) end)
124+
capture_io(:stdio, fn -> error_check(command, exit_ok()) end)
125125
end
126126

127127
test "a non-existent command results in help message displayed" do

0 commit comments

Comments
 (0)