test(prom): start mock pushgateway

This commit is contained in:
JimMoen 2024-02-18 03:39:18 +08:00
parent ba1d24d054
commit c61b558423
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,7 @@ init_per_suite(Config) ->
end
),
ok = emqx_prometheus_SUITE:maybe_meck_license(),
emqx_prometheus_SUITE:start_mock_pushgateway(9091),
application:load(emqx_auth),
Apps = emqx_cth_suite:start(
@ -140,6 +141,7 @@ init_per_suite(Config) ->
end_per_suite(Config) ->
meck:unload([emqx_retainer]),
emqx_prometheus_SUITE:maybe_unmeck_license(),
emqx_prometheus_SUITE:stop_mock_pushgateway(),
{ok, _} = emqx:update_config(
[authorization],
#{