Skip to content

Commit 55e4041

Browse files
committed
Fix metrics_SUITE connection_metrics flake
1 parent 8c9250d commit 55e4041

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

deps/rabbit/test/metrics_SUITE.erl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,7 @@ queue_metric_idemp(Config, {N, R}) ->
204204

205205
connection_metric_count(Config, Ops) ->
206206
add_rem_counter(Config, Ops,
207-
{fun(Config) ->
208-
case rabbit_ct_client_helpers:open_unmanaged_connection(Config) of
209-
{error, _} = E -> throw(E);
210-
Conn -> Conn
211-
end
212-
end,
207+
{fun rabbit_ct_client_helpers:open_unmanaged_connection/1 end,
213208
fun(Cfg) ->
214209
rabbit_ct_client_helpers:close_connection(Cfg)
215210
end},

0 commit comments

Comments
 (0)