test(ds): Refactor ds_SUITE

This commit is contained in:
ieQu1 2024-05-19 09:24:02 +02:00
parent e4a73f003a
commit 074d98a14a
No known key found for this signature in database
GPG Key ID: 488654DF3FED6FDE
1 changed files with 10 additions and 4 deletions

View File

@ -67,10 +67,16 @@ t_00_smoke_open_drop(_Config) ->
%% A simple smoke test that verifies that storing the messages doesn't %% A simple smoke test that verifies that storing the messages doesn't
%% crash %% crash
t_01_smoke_store(_Config) -> t_01_smoke_store(_Config) ->
DB = default, ?check_trace(
?assertMatch(ok, emqx_ds:open_db(DB, opts())), #{timetrap => 10_000},
Msg = message(<<"foo/bar">>, <<"foo">>, 0), begin
?assertMatch(ok, emqx_ds:store_batch(DB, [Msg])). DB = default,
?assertMatch(ok, emqx_ds:open_db(DB, opts())),
Msg = message(<<"foo/bar">>, <<"foo">>, 0),
?assertMatch(ok, emqx_ds:store_batch(DB, [Msg]))
end,
[]
).
%% A simple smoke test that verifies that getting the list of streams %% A simple smoke test that verifies that getting the list of streams
%% doesn't crash and that iterators can be opened. %% doesn't crash and that iterators can be opened.