Skip to content

Commit 8c9250d

Browse files
committed
Throw error in connection count
1 parent d180f98 commit 8c9250d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

deps/rabbit/test/metrics_SUITE.erl

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

205205
connection_metric_count(Config, Ops) ->
206206
add_rem_counter(Config, Ops,
207-
{fun rabbit_ct_client_helpers:open_unmanaged_connection/1,
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,
208213
fun(Cfg) ->
209214
rabbit_ct_client_helpers:close_connection(Cfg)
210215
end},

0 commit comments

Comments
 (0)