Skip to content

Commit 52c3e6f

Browse files
Switch to --silent when listing connections
1 parent c343098 commit 52c3e6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

projects/client/Unit/src/unit/Fixtures.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ public override string ToString()
549549

550550
internal List<ConnectionInfo> ListConnections()
551551
{
552-
Process proc = ExecRabbitMQCtl("list_connections -q --no-table-headers pid peer_port");
552+
Process proc = ExecRabbitMQCtl("list_connections --silent pid peer_port");
553553
String stdout = proc.StandardOutput.ReadToEnd();
554554

555555
try
@@ -568,7 +568,7 @@ internal List<ConnectionInfo> ListConnections()
568568
}
569569
catch (Exception)
570570
{
571-
Console.WriteLine("Bad response from rabbitmqctl list_connections -q --no-table-headers pid peer_port:" + Environment.NewLine + stdout);
571+
Console.WriteLine("Bad response from rabbitmqctl list_connections --silent pid peer_port:" + Environment.NewLine + stdout);
572572
throw;
573573
}
574574
}

0 commit comments

Comments
 (0)