amqp_client_SUITE: Trim "list_connections" output in one more place
[Why]
The reason is the same as for commit
ffaf919846
. It should have been part of it
in fact, so an oversight from my end.
This commit is contained in:
parent
8bdbb0fc23
commit
56b59c3d3e
|
@ -4073,7 +4073,7 @@ list_connections(Config) ->
|
||||||
end,
|
end,
|
||||||
|
|
||||||
{ok, StdOut0} = rabbit_ct_broker_helpers:rabbitmqctl(Config, 0, ["list_connections", "--silent", "protocol"]),
|
{ok, StdOut0} = rabbit_ct_broker_helpers:rabbitmqctl(Config, 0, ["list_connections", "--silent", "protocol"]),
|
||||||
Protocols0 = re:split(StdOut0, <<"\n">>, [trim]),
|
Protocols0 = re:split(string:trim(StdOut0), <<"\n">>, [trim]),
|
||||||
%% Remove any whitespaces.
|
%% Remove any whitespaces.
|
||||||
Protocols1 = [binary:replace(Subject, <<" ">>, <<>>, [global]) || Subject <- Protocols0],
|
Protocols1 = [binary:replace(Subject, <<" ">>, <<>>, [global]) || Subject <- Protocols0],
|
||||||
Protocols = lists:sort(Protocols1),
|
Protocols = lists:sort(Protocols1),
|
||||||
|
|
Loading…
Reference in New Issue