Merge pull request #7110 from thalesmg/fix-flaky-order-prop

test(fix): fix flaky prop
This commit is contained in:
Thales Macedo Garitezi 2022-02-23 09:09:23 -03:00 committed by GitHub
commit 278361e6b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -55,8 +55,9 @@ add_hook_order_prop() ->
(Prio1 =:= Prio2 andalso {M1, F1} =< {M2, F2})
end,
?FORALL(
Hooks, list({range(-1, 5), atom(), atom()}),
Hooks0, list({range(-1, 5), atom(), atom()}),
try
Hooks = sets:to_list(sets:from_list(Hooks0)),
{ok, _} = emqx_hooks:start_link(),
[emqx:hook(prop_hook, {M, F, []}, Prio) || {Prio, M, F} <- Hooks],
Callbacks = emqx_hooks:lookup(prop_hook),