From f9e5d349df85cd5a4d344e0178803d8e0ffb7695 Mon Sep 17 00:00:00 2001 From: Ayanda Dube Date: Tue, 1 Oct 2024 14:39:36 +0100 Subject: [PATCH] test and assert new classic queue leader info item --- deps/rabbit/test/classic_queue_SUITE.erl | 1 + 1 file changed, 1 insertion(+) diff --git a/deps/rabbit/test/classic_queue_SUITE.erl b/deps/rabbit/test/classic_queue_SUITE.erl index 5b54d7150fb0..e1e828124ffb 100644 --- a/deps/rabbit/test/classic_queue_SUITE.erl +++ b/deps/rabbit/test/classic_queue_SUITE.erl @@ -83,6 +83,7 @@ leader_locator_client_local(Config) -> {<<"x-queue-leader-locator">>, longstr, <<"client-local">>}])), {ok, Leader0} = rabbit_ct_broker_helpers:rpc(Config, Server, rabbit_amqqueue, lookup, [rabbit_misc:r(<<"/">>, queue, Q)]), Leader = amqqueue:qnode(Leader0), + ?assertEqual([{leader, Leader}], rabbit_ct_broker_helpers:rpc(Config, Server, rabbit_amqqueue, info, [Leader0, [leader]])), ?assertEqual(Server, Leader), ?assertMatch(#'queue.delete_ok'{}, amqp_channel:call(Ch, #'queue.delete'{queue = Q}))