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:
Jean-Sébastien Pédron 2025-07-31 15:21:39 +02:00
parent 8bdbb0fc23
commit 56b59c3d3e
No known key found for this signature in database
GPG Key ID: 39E99761A5FD94CC
1 changed files with 1 additions and 1 deletions

View File

@ -4073,7 +4073,7 @@ list_connections(Config) ->
end,
{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.
Protocols1 = [binary:replace(Subject, <<" ">>, <<>>, [global]) || Subject <- Protocols0],
Protocols = lists:sort(Protocols1),