fix: go to different resource instance when health check

This commit is contained in:
Shawn 2022-04-19 23:00:34 +08:00
parent 1b79b3f3c9
commit 278e9145b0
1 changed files with 2 additions and 1 deletions

View File

@ -166,7 +166,8 @@ create_dry_run(ResourceType, Config) ->
-spec create_dry_run_local(resource_type(), resource_config()) ->
ok | {error, Reason :: term()}.
create_dry_run_local(ResourceType, Config) ->
call_instance(<<?TEST_ID_PREFIX>>, {create_dry_run, ResourceType, Config}).
RandId = iolist_to_binary(emqx_misc:gen_id(16)),
call_instance(RandId, {create_dry_run, ResourceType, Config}).
-spec recreate(instance_id(), resource_type(), resource_config(), create_opts()) ->
{ok, resource_data()} | {error, Reason :: term()}.