From 1d3b1868fb76d744ee15dee1b9977a30ea6ec84c Mon Sep 17 00:00:00 2001 From: ieQu1 <99872536+ieQu1@users.noreply.github.com> Date: Tue, 18 Jun 2024 01:52:02 +0200 Subject: [PATCH] test(ds): Use close_db API --- .../test/emqx_ds_storage_bitfield_lts_SUITE.erl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/emqx_durable_storage/test/emqx_ds_storage_bitfield_lts_SUITE.erl b/apps/emqx_durable_storage/test/emqx_ds_storage_bitfield_lts_SUITE.erl index 54033ae78..bd0f382b2 100644 --- a/apps/emqx_durable_storage/test/emqx_ds_storage_bitfield_lts_SUITE.erl +++ b/apps/emqx_durable_storage/test/emqx_ds_storage_bitfield_lts_SUITE.erl @@ -185,8 +185,7 @@ t_new_generation_inherit_trie(_Config) -> %% learned trie. ok = emqx_ds_storage_layer:add_generation(?SHARD, _Since = 1_000), %% Restart the shard, to verify that LTS is persisted. - ok = application:stop(emqx_durable_storage), - ok = application:start(emqx_durable_storage), + ok = emqx_ds:close_db(?FUNCTION_NAME), ok = emqx_ds:open_db(?FUNCTION_NAME, ?DEFAULT_CONFIG), %% Store a batch of messages with the same set of topics. TS2 = 1_500,