Fix test case

This commit is contained in:
zhouzb 2020-05-21 15:27:30 +08:00 committed by turtleDeng
parent c536757e1f
commit 997b0018f5
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ t_handle_in_unexpected_connect_packet(_) ->
emqx_channel:handle_in(?CONNECT_PACKET(connpkt()), Channel). emqx_channel:handle_in(?CONNECT_PACKET(connpkt()), Channel).
t_handle_in_unexpected_packet(_) -> t_handle_in_unexpected_packet(_) ->
Channel = channel(), Channel = emqx_channel:set_field(conn_state, idle, channel()),
Packet = ?DISCONNECT_PACKET(?RC_PROTOCOL_ERROR), Packet = ?DISCONNECT_PACKET(?RC_PROTOCOL_ERROR),
{ok, [{outgoing, Packet}, {close, protocol_error}], Channel} = {ok, [{outgoing, Packet}, {close, protocol_error}], Channel} =
emqx_channel:handle_in(?PUBLISH_PACKET(?QOS_0), Channel). emqx_channel:handle_in(?PUBLISH_PACKET(?QOS_0), Channel).