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.
This commit is contained in:
Andrew Mayorov 2024-06-13 15:29:26 +02:00
parent 2180cc7c26
commit cd0663074e
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 3 additions and 3 deletions

View File

@ -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