From cd0663074e03ff44ecc24bf1757f60077c679936 Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Thu, 13 Jun 2024 15:29:26 +0200 Subject: [PATCH] test(dsrepl): add `add_generation` events into the mix They usually cause storage layer to perform flushes, and thus enable testing `handle_flush/1` codepath in different circumstances. --- .../emqx_ds_builtin_raft/test/emqx_ds_replication_SUITE.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/emqx_ds_builtin_raft/test/emqx_ds_replication_SUITE.erl b/apps/emqx_ds_builtin_raft/test/emqx_ds_replication_SUITE.erl index abe154807..2276dfb03 100644 --- a/apps/emqx_ds_builtin_raft/test/emqx_ds_replication_SUITE.erl +++ b/apps/emqx_ds_builtin_raft/test/emqx_ds_replication_SUITE.erl @@ -232,14 +232,14 @@ t_rebalance(Config) -> ], Stream1 = emqx_utils_stream:interleave( [ - {10, Stream0}, + {20, Stream0}, emqx_utils_stream:const(add_generation) ], false ), Stream = emqx_utils_stream:interleave( [ - {50, Stream0}, + {50, Stream1}, emqx_utils_stream:list(Sequence) ], true @@ -604,7 +604,7 @@ t_drop_generation(Config) -> after emqx_cth_cluster:stop(Nodes) end, - fun(Trace) -> + fun(_Trace) -> %% TODO: some idempotency errors still happen %% ?assertMatch([], ?of_kind(ds_storage_layer_failed_to_drop_generation, Trace)), true