test(emqx_delayed_SUITE): fix flaky test

This commit is contained in:
Zaiming (Stone) Shi 2023-05-02 10:41:14 +02:00
parent 37bf12c29e
commit 29c9edeb4c
1 changed files with 4 additions and 4 deletions

View File

@ -169,10 +169,10 @@ t_cluster(_) ->
emqx_delayed_proto_v1:get_delayed_message(node(), Id)
),
?assertEqual(
emqx_delayed:get_delayed_message(Id),
emqx_delayed_proto_v1:get_delayed_message(node(), Id)
),
%% The 'local' and the 'fake-remote' values should be the same,
%% however there is a race condition, so we are just assert that they are both 'ok' tuples
?assertMatch({ok, _}, emqx_delayed:get_delayed_message(Id)),
?assertMatch({ok, _}, emqx_delayed_proto_v1:get_delayed_message(node(), Id)),
ok = emqx_delayed_proto_v1:delete_delayed_message(node(), Id),