Skip to content

Commit

Permalink
Fix metrics_SUITE connection_metrics flake
Browse files Browse the repository at this point in the history
  • Loading branch information
dcorbacho committed Oct 28, 2024
1 parent 8c9250d commit 55e4041
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions deps/rabbit/test/metrics_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,7 @@ queue_metric_idemp(Config, {N, R}) ->

connection_metric_count(Config, Ops) ->
add_rem_counter(Config, Ops,
{fun(Config) ->
case rabbit_ct_client_helpers:open_unmanaged_connection(Config) of
{error, _} = E -> throw(E);
Conn -> Conn
end
end,
{fun rabbit_ct_client_helpers:open_unmanaged_connection/1 end,
fun(Cfg) ->
rabbit_ct_client_helpers:close_connection(Cfg)
end},
Expand Down

0 comments on commit 55e4041

Please sign in to comment.