ieQu1 1 год назад
Родитель
Сommit
1d3b1868fb
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      apps/emqx_durable_storage/test/emqx_ds_storage_bitfield_lts_SUITE.erl

+ 1 - 2
apps/emqx_durable_storage/test/emqx_ds_storage_bitfield_lts_SUITE.erl

@@ -185,8 +185,7 @@ t_new_generation_inherit_trie(_Config) ->
             %% learned trie.
             %% learned trie.
             ok = emqx_ds_storage_layer:add_generation(?SHARD, _Since = 1_000),
             ok = emqx_ds_storage_layer:add_generation(?SHARD, _Since = 1_000),
             %% Restart the shard, to verify that LTS is persisted.
             %% 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),
             ok = emqx_ds:open_db(?FUNCTION_NAME, ?DEFAULT_CONFIG),
             %% Store a batch of messages with the same set of topics.
             %% Store a batch of messages with the same set of topics.
             TS2 = 1_500,
             TS2 = 1_500,