test: fix emqx_resource_SUITE

This commit is contained in:
Ivan Dyachkov 2023-10-25 17:32:28 +02:00 committed by Zaiming (Stone) Shi
parent d53cd381ae
commit 4ac0a76d00
1 changed files with 2 additions and 2 deletions

View File

@ -167,7 +167,7 @@ t_create_remove_local(_) ->
?assertMatch(ok, emqx_resource:remove_local(?ID)), ?assertMatch(ok, emqx_resource:remove_local(?ID)),
?assertMatch( ?assertMatch(
?RESOURCE_ERROR(not_found), {error, not_found},
emqx_resource:query(?ID, get_state) emqx_resource:query(?ID, get_state)
), ),
@ -235,7 +235,7 @@ t_query(_) ->
{ok, #{pid := _}} = emqx_resource:query(?ID, get_state), {ok, #{pid := _}} = emqx_resource:query(?ID, get_state),
?assertMatch( ?assertMatch(
?RESOURCE_ERROR(not_found), {error, not_found},
emqx_resource:query(<<"unknown">>, get_state) emqx_resource:query(<<"unknown">>, get_state)
), ),