Fix the test case 't_handle_disconnect'
This commit is contained in:
parent
a9daa3c821
commit
6aac73f51f
|
@ -129,6 +129,8 @@ info(topic_aliases, #channel{topic_aliases = Aliases}) ->
|
||||||
Aliases;
|
Aliases;
|
||||||
info(alias_maximum, #channel{alias_maximum = Limits}) ->
|
info(alias_maximum, #channel{alias_maximum = Limits}) ->
|
||||||
Limits;
|
Limits;
|
||||||
|
info(will_msg, #channel{will_msg = WillMsg}) ->
|
||||||
|
WillMsg;
|
||||||
info(gc_state, #channel{gc_state = GcState}) ->
|
info(gc_state, #channel{gc_state = GcState}) ->
|
||||||
maybe_apply(fun emqx_gc:info/1, GcState);
|
maybe_apply(fun emqx_gc:info/1, GcState);
|
||||||
info(oom_policy, #channel{oom_policy = OomPolicy}) ->
|
info(oom_policy, #channel{oom_policy = OomPolicy}) ->
|
||||||
|
|
|
@ -145,7 +145,7 @@ t_handle_disconnect(_) ->
|
||||||
with_channel(
|
with_channel(
|
||||||
fun(Channel) ->
|
fun(Channel) ->
|
||||||
{wait_session_expire, {shutdown, normal}, Channel1} = handle_in(?DISCONNECT_PACKET(?RC_SUCCESS), Channel),
|
{wait_session_expire, {shutdown, normal}, Channel1} = handle_in(?DISCONNECT_PACKET(?RC_SUCCESS), Channel),
|
||||||
?assertMatch(#{will_msg := undefined}, emqx_channel:info(protocol, Channel1))
|
?assertEqual(undefined, emqx_channel:info(will_msg, Channel1))
|
||||||
end).
|
end).
|
||||||
|
|
||||||
t_handle_auth(_) ->
|
t_handle_auth(_) ->
|
||||||
|
|
Loading…
Reference in New Issue