Browse Source

test(dsrepl): await stable state before running testcase

Andrew Mayorov 1 năm trước cách đây
mục cha
commit
e1de18ef10

+ 1 - 0
apps/emqx_ds_builtin_raft/test/emqx_ds_replication_SUITE.erl

@@ -140,6 +140,7 @@ t_replication_transfers_snapshots(Config) ->
 
             %% Stop the DB on the "offline" node.
             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.
             emqx_ds_test_helpers:apply_stream(?DB, Nodes -- [NodeOffline], Stream),