test: call emqx_resource:remove_local

This commit is contained in:
Zaiming (Stone) Shi 2024-02-21 10:52:03 +01:00
parent de93d1c0a3
commit 333eb34300
2 changed files with 2 additions and 2 deletions

View File

@ -315,7 +315,7 @@ delete_all_bridges() ->
%% at some point during the tests, sometimes `emqx_bridge:list()'
%% returns an empty list, but `emqx:get_config([bridges])' returns
%% a bunch of orphan test bridges...
lists:foreach(fun emqx_resource:remove/1, emqx_resource:list_instances()),
lists:foreach(fun emqx_resource:remove_local/1, emqx_resource:list_instances()),
emqx_config:put([bridges], #{}),
ok.

View File

@ -1234,7 +1234,7 @@ delete_all_bridges() ->
%% at some point during the tests, sometimes `emqx_bridge:list()'
%% returns an empty list, but `emqx:get_config([bridges])' returns
%% a bunch of orphan test bridges...
lists:foreach(fun emqx_resource:remove/1, emqx_resource:list_instances()),
lists:foreach(fun emqx_resource:remove_local/1, emqx_resource:list_instances()),
emqx_config:put([bridges], #{}),
ok.