test: fix test mock by calling exported function

This commit is contained in:
Kjell Winblad 2023-11-13 15:21:30 +01:00 committed by Ivan Dyachkov
parent 3bea3496af
commit d682e6e23c
1 changed files with 8 additions and 2 deletions

View File

@ -28,7 +28,13 @@
get_response/0,
put_request/0,
post_request/0,
examples/1,
examples/1
]).
%% Exported for mocking
%% TODO: refactor emqx_bridge_v1_compatibility_layer_SUITE so we don't need to
%% export this
-export([
registered_api_schemas/1
]).
@ -51,7 +57,7 @@ post_request() ->
api_schema("post").
api_schema(Method) ->
APISchemas = registered_api_schemas(Method),
APISchemas = ?MODULE:registered_api_schemas(Method),
hoconsc:union(bridge_api_union(APISchemas)).
registered_api_schemas(Method) ->