Skip to content

Commit c769aaf

Browse files
committed
Fix test relying on GS2 state
1 parent 8360eae commit c769aaf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

deps/rabbit/test/rabbitmq_4_0_deprecations_SUITE.erl

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,10 @@ when_global_qos_is_not_permitted_from_conf(Config) ->
214214
list_server_channels(Config, Node) ->
215215
rabbit_ct_broker_helpers:rpc(Config, Node, rabbit_channel, list, []).
216216

217-
is_prefetch_limited(ServerCh) ->
218-
GenServer2State = sys:get_state(ServerCh),
219-
ChState = element(4, GenServer2State),
220-
ct:pal("Server channel (~p) state: ~p", [ServerCh, ChState]),
221-
LimiterState = element(3, ChState),
217+
is_prefetch_limited(ChannelPid) ->
218+
ChannelState = sys:get_state(ChannelPid),
219+
ct:pal("Server channel (~p) state: ~p", [ChannelPid, ChannelState]),
220+
LimiterState = element(3, ChannelState),
222221
element(3, LimiterState).
223222

224223
%% -------------------------------------------------------------------

0 commit comments

Comments
 (0)