test: clean up created resources in the end of test case

This commit is contained in:
Kjell Winblad 2024-04-17 18:43:19 +02:00
parent 6cf29ba688
commit 95891db29a
1 changed files with 6 additions and 0 deletions

View File

@ -293,6 +293,12 @@ t_apply_rule_test_batch_separation_stop_after_render(_Config) ->
) )
end end
), ),
%% Cleanup
ok = emqx_trace:delete(Name),
ok = emqx_rule_engine:delete_rule(RuleID),
ok = emqx_bridge_v2:remove(rule_engine_test, ?FUNCTION_NAME),
ok = emqx_connector:remove(rule_engine_test, ?FUNCTION_NAME),
[_, _] = meck:unload(),
ok. ok.
apply_rule_parms(StopAfterRender, Name) -> apply_rule_parms(StopAfterRender, Name) ->