chore(test): fix typo error

This commit is contained in:
zhongwencool 2022-01-13 16:26:32 +08:00
parent 27f5e765b5
commit e96c9ada52
1 changed files with 2 additions and 2 deletions

View File

@ -583,7 +583,7 @@ t_data(_) ->
?assertMatch({ok, _}, request_api(post, api_path(["data","import"]), [], auth_header_(), #{<<"filename">> => Filename, <<"node">> => Node})),
?assertMatch({ok, _}, request_api(post, api_path(["data","import"]), [], auth_header_(), #{<<"filename">> => Filename})),
application:stop(emqx_rule_engine),
application:stop(emqx_dahboard),
application:stop(emqx_dashboard),
ok.
t_data_import_content(_) ->
@ -598,7 +598,7 @@ t_data_import_content(_) ->
Content = emqx_json:decode(Bin),
?assertMatch({ok, "{\"code\":0}"}, request_api(post, api_path(["data","import"]), [], auth_header_(), Content)),
application:stop(emqx_rule_engine),
application:stop(emqx_dahboard).
application:stop(emqx_dashboard).
request_api(Method, Url, Auth) ->
request_api(Method, Url, [], Auth, []).