fix(test): mock emqx_resource:remove/1 in emqx_authz_http_SUITE

This commit is contained in:
Shawn 2021-08-16 16:33:59 +08:00
parent 7f03cd0e8b
commit 988d620421
1 changed files with 1 additions and 0 deletions

View File

@ -31,6 +31,7 @@ groups() ->
init_per_suite(Config) -> init_per_suite(Config) ->
meck:new(emqx_resource, [non_strict, passthrough, no_history, no_link]), meck:new(emqx_resource, [non_strict, passthrough, no_history, no_link]),
meck:expect(emqx_resource, create, fun(_, _, _) -> {ok, meck_data} end), meck:expect(emqx_resource, create, fun(_, _, _) -> {ok, meck_data} end),
meck:expect(emqx_resource, remove, fun(_) -> ok end ),
ok = emqx_ct_helpers:start_apps([emqx_authz]), ok = emqx_ct_helpers:start_apps([emqx_authz]),