|
@@ -91,7 +91,7 @@ recv_and_check_presence(ClientId, Presence) ->
|
|
|
<<"disconnected">> ->
|
|
<<"disconnected">> ->
|
|
|
?assertMatch(#{clientid := <<"clientid">>,
|
|
?assertMatch(#{clientid := <<"clientid">>,
|
|
|
username := <<"username">>,
|
|
username := <<"username">>,
|
|
|
- reason := <<"normal">>}, emqx_json:decode(Payload, [{labels, atom}, return_maps]))
|
|
|
|
|
|
|
+ reason := <<"closed">>}, emqx_json:decode(Payload, [{labels, atom}, return_maps]))
|
|
|
end.
|
|
end.
|
|
|
|
|
|
|
|
%% Test case for emqx_mod_subscription
|
|
%% Test case for emqx_mod_subscription
|