fix(emqx_resource_instance): fix dialyzer warning
This commit is contained in:
parent
db97ed5163
commit
db0e9e3358
|
@ -182,7 +182,7 @@ wait_for_resource_ready(InstId, 0) ->
|
|||
force_lookup(InstId);
|
||||
wait_for_resource_ready(InstId, Retry) ->
|
||||
case force_lookup(InstId) of
|
||||
#{resource_data := #{status := connected}} = Data -> Data;
|
||||
#{status := connected} = Data -> Data;
|
||||
_ ->
|
||||
timer:sleep(100),
|
||||
wait_for_resource_ready(InstId, Retry-1)
|
||||
|
|
|
@ -221,6 +221,8 @@ t_stop_start(_) ->
|
|||
|
||||
ok = emqx_resource:restart(?ID),
|
||||
|
||||
timer:sleep(300),
|
||||
|
||||
#{pid := Pid1} = emqx_resource:query(?ID, get_state),
|
||||
|
||||
?assert(is_process_alive(Pid1)).
|
||||
|
|
Loading…
Reference in New Issue