test(emqx_delayed_SUITE): fix flaky test
This commit is contained in:
parent
37bf12c29e
commit
29c9edeb4c
|
@ -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),
|
||||
|
||||
|
|
Loading…
Reference in New Issue