Skip to content

Commit

Permalink
Fix test relying on GS2 state
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuratczyk committed Sep 4, 2024
1 parent 8360eae commit c769aaf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions deps/rabbit/test/rabbitmq_4_0_deprecations_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,10 @@ when_global_qos_is_not_permitted_from_conf(Config) ->
list_server_channels(Config, Node) ->
rabbit_ct_broker_helpers:rpc(Config, Node, rabbit_channel, list, []).

is_prefetch_limited(ServerCh) ->
GenServer2State = sys:get_state(ServerCh),
ChState = element(4, GenServer2State),
ct:pal("Server channel (~p) state: ~p", [ServerCh, ChState]),
LimiterState = element(3, ChState),
is_prefetch_limited(ChannelPid) ->
ChannelState = sys:get_state(ChannelPid),
ct:pal("Server channel (~p) state: ~p", [ChannelPid, ChannelState]),
LimiterState = element(3, ChannelState),
element(3, LimiterState).

%% -------------------------------------------------------------------
Expand Down

0 comments on commit c769aaf

Please sign in to comment.