test(ds): avoid side effects in check phase

This commit is contained in:
Andrew Mayorov 2024-08-05 16:34:17 +02:00
parent 382feab7d1
commit b1a53568d6
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 4 additions and 4 deletions

View File

@ -327,9 +327,8 @@ t_11_batch_preconditions(Config) ->
?assertEqual( ?assertEqual(
ok, ok,
emqx_ds:store_batch(DB, Batch1) emqx_ds:store_batch(DB, Batch1)
) ),
end,
fun(_Trace) ->
%% Wait at least until current epoch ends. %% Wait at least until current epoch ends.
ct:sleep(1000), ct:sleep(1000),
%% There's no messages in the DB. %% There's no messages in the DB.
@ -337,7 +336,8 @@ t_11_batch_preconditions(Config) ->
[], [],
emqx_ds_test_helpers:consume(DB, emqx_topic:words(<<"t/#">>)) emqx_ds_test_helpers:consume(DB, emqx_topic:words(<<"t/#">>))
) )
end end,
[]
). ).
t_12_batch_precondition_conflicts(Config) -> t_12_batch_precondition_conflicts(Config) ->