Просмотр исходного кода

fix(test): fix test case of authz

zhouzb 4 лет назад
Родитель
Сommit
9df842eeb8
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      apps/emqx_authz/test/emqx_authz_api_sources_SUITE.erl

+ 3 - 3
apps/emqx_authz/test/emqx_authz_api_sources_SUITE.erl

@@ -148,8 +148,8 @@ set_special_configs(_App) ->
     ok.
 
 init_per_testcase(t_api, Config) ->
-    meck:new(emqx_plugin_libs_id, [non_strict, passthrough, no_history, no_link]),
-    meck:expect(emqx_plugin_libs_id, gen, fun() -> "fake" end),
+    meck:new(emqx_misc, [non_strict, passthrough, no_history, no_link]),
+    meck:expect(emqx_misc, gen_id, fun() -> "fake" end),
 
     meck:new(emqx, [non_strict, passthrough, no_history, no_link]),
     meck:expect(emqx, get_config, fun([node, data_dir]) ->
@@ -162,7 +162,7 @@ init_per_testcase(t_api, Config) ->
 init_per_testcase(_, Config) -> Config.
 
 end_per_testcase(t_api, _Config) ->
-    meck:unload(emqx_plugin_libs_id),
+    meck:unload(emqx_misc),
     meck:unload(emqx),
     ok;
 end_per_testcase(_, _Config) -> ok.