Skip to content

Commit c1fb658

Browse files
committed
Update test expections
To match the metrics format that includes the new basic_get empty metric.
1 parent 8345623 commit c1fb658

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

test/unit_inbroker_non_parallel_SUITE.erl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -491,24 +491,24 @@ channel_statistics1(_Config) ->
491491

492492
%% Check the stats reflect that
493493
Check2 = fun() ->
494-
[{{Ch, QRes}, 1, 0, 0, 0, 0, 0, 0}] = ets:lookup(
495-
channel_queue_metrics,
496-
{Ch, QRes}),
497-
[{{Ch, X}, 1, 0, 0, 0}] = ets:lookup(
498-
channel_exchange_metrics,
499-
{Ch, X}),
500-
[{{Ch, {QRes, X}}, 1, 0}] = ets:lookup(
501-
channel_queue_exchange_metrics,
502-
{Ch, {QRes, X}})
494+
[{{Ch, QRes}, 1, 0, 0, 0, 0, 0, 0, 0}] = ets:lookup(
495+
channel_queue_metrics,
496+
{Ch, QRes}),
497+
[{{Ch, X}, 1, 0, 0, 0}] = ets:lookup(
498+
channel_exchange_metrics,
499+
{Ch, X}),
500+
[{{Ch, {QRes, X}}, 1, 0}] = ets:lookup(
501+
channel_queue_exchange_metrics,
502+
{Ch, {QRes, X}})
503503
end,
504504
test_ch_metrics(Check2, ?TIMEOUT),
505505

506506
%% Check the stats are marked for removal on queue deletion.
507507
rabbit_channel:do(Ch, #'queue.delete'{queue = QName}),
508508
Check3 = fun() ->
509-
[{{Ch, QRes}, 1, 0, 0, 0, 0, 0, 1}] = ets:lookup(
510-
channel_queue_metrics,
511-
{Ch, QRes}),
509+
[{{Ch, QRes}, 1, 0, 0, 0, 0, 0, 0, 1}] = ets:lookup(
510+
channel_queue_metrics,
511+
{Ch, QRes}),
512512
[{{Ch, X}, 1, 0, 0, 0}] = ets:lookup(
513513
channel_exchange_metrics,
514514
{Ch, X}),

0 commit comments

Comments
 (0)