chore(rebalance): fix flaky test
This commit is contained in:
parent
5b4d09560b
commit
9245162394
|
@ -278,13 +278,14 @@ t_session_serialization(_Config) ->
|
||||||
emqx_eviction_agent:session_count()
|
emqx_eviction_agent:session_count()
|
||||||
),
|
),
|
||||||
|
|
||||||
|
[ChanPid0] = emqx_cm:lookup_channels(<<"client_with_session">>),
|
||||||
|
MRef0 = erlang:monitor(process, ChanPid0),
|
||||||
|
|
||||||
%% Evacuate to the same node
|
%% Evacuate to the same node
|
||||||
|
|
||||||
?assertWaitEvent(
|
_ = emqx_eviction_agent:evict_sessions(1, node()),
|
||||||
emqx_eviction_agent:evict_sessions(1, node()),
|
|
||||||
#{?snk_kind := emqx_channel_takeover_end, clientid := <<"client_with_session">>},
|
?assertReceive({'DOWN', MRef0, process, ChanPid0, _}),
|
||||||
1000
|
|
||||||
),
|
|
||||||
|
|
||||||
ok = emqx_eviction_agent:disable(test_eviction),
|
ok = emqx_eviction_agent:disable(test_eviction),
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue