test: fix test case mock that broke due to removal
This commit is contained in:
parent
093c8b0c6e
commit
3bea3496af
|
@ -28,7 +28,8 @@
|
||||||
get_response/0,
|
get_response/0,
|
||||||
put_request/0,
|
put_request/0,
|
||||||
post_request/0,
|
post_request/0,
|
||||||
examples/1
|
examples/1,
|
||||||
|
registered_api_schemas/1
|
||||||
]).
|
]).
|
||||||
|
|
||||||
-export([types/0, types_sc/0]).
|
-export([types/0, types_sc/0]).
|
||||||
|
|
|
@ -111,7 +111,7 @@ setup_mocks() ->
|
||||||
catch meck:new(emqx_bridge_v2_schema, MeckOpts),
|
catch meck:new(emqx_bridge_v2_schema, MeckOpts),
|
||||||
meck:expect(
|
meck:expect(
|
||||||
emqx_bridge_v2_schema,
|
emqx_bridge_v2_schema,
|
||||||
enterprise_api_schemas,
|
registered_api_schemas,
|
||||||
1,
|
1,
|
||||||
fun(Method) -> [{bridge_type_bin(), hoconsc:ref(?MODULE, "api_" ++ Method)}] end
|
fun(Method) -> [{bridge_type_bin(), hoconsc:ref(?MODULE, "api_" ++ Method)}] end
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in New Issue