test(dsrepl): await stable state before running testcase

This commit is contained in:
Andrew Mayorov 2024-06-26 20:42:59 +02:00
parent 30efa1f57e
commit e1de18ef10
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ t_replication_transfers_snapshots(Config) ->
%% Stop the DB on the "offline" node. %% Stop the DB on the "offline" node.
ok = emqx_cth_cluster:stop_node(NodeOffline), ok = emqx_cth_cluster:stop_node(NodeOffline),
_ = ?block_until(#{?snk_kind := ds_ra_state_enter, state := leader}, 500, 0),
%% Fill the storage with messages and few additional generations. %% Fill the storage with messages and few additional generations.
emqx_ds_test_helpers:apply_stream(?DB, Nodes -- [NodeOffline], Stream), emqx_ds_test_helpers:apply_stream(?DB, Nodes -- [NodeOffline], Stream),