Fix error test case for emqx

This commit is contained in:
zhanghongtong 2019-11-01 17:07:32 +08:00
parent 1a901942f7
commit 3e70143518
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,6 @@ t_stop_start(_) ->
false = emqx:is_running(node()). false = emqx:is_running(node()).
t_get_env(_) -> t_get_env(_) ->
emqx:start(),
?assertEqual(undefined, emqx:get_env(undefined_key)), ?assertEqual(undefined, emqx:get_env(undefined_key)),
?assertEqual(default_value, emqx:get_env(undefined_key, default_value)), ?assertEqual(default_value, emqx:get_env(undefined_key, default_value)),
application:set_env(emqx, undefined_key, hello), application:set_env(emqx, undefined_key, hello),
@ -54,6 +53,7 @@ t_get_env(_) ->
application:unset_env(emqx, undefined_key). application:unset_env(emqx, undefined_key).
t_emqx_pubsub_api(_) -> t_emqx_pubsub_api(_) ->
emqx:start(),
true = emqx:is_running(node()), true = emqx:is_running(node()),
{ok, C} = emqtt:start_link([{host, "localhost"}, {clientid, "myclient"}]), {ok, C} = emqtt:start_link([{host, "localhost"}, {clientid, "myclient"}]),
{ok, _} = emqtt:connect(C), {ok, _} = emqtt:connect(C),