Browse Source

Fix the test case 't_mod_presence'

zhouzb 6 years ago
parent
commit
fd455e57eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/emqx_modules_SUITE.erl

+ 1 - 1
test/emqx_modules_SUITE.erl

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