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:
parent
2180cc7c26
commit
cd0663074e
|
@ -232,14 +232,14 @@ t_rebalance(Config) ->
|
||||||
],
|
],
|
||||||
Stream1 = emqx_utils_stream:interleave(
|
Stream1 = emqx_utils_stream:interleave(
|
||||||
[
|
[
|
||||||
{10, Stream0},
|
{20, Stream0},
|
||||||
emqx_utils_stream:const(add_generation)
|
emqx_utils_stream:const(add_generation)
|
||||||
],
|
],
|
||||||
false
|
false
|
||||||
),
|
),
|
||||||
Stream = emqx_utils_stream:interleave(
|
Stream = emqx_utils_stream:interleave(
|
||||||
[
|
[
|
||||||
{50, Stream0},
|
{50, Stream1},
|
||||||
emqx_utils_stream:list(Sequence)
|
emqx_utils_stream:list(Sequence)
|
||||||
],
|
],
|
||||||
true
|
true
|
||||||
|
@ -604,7 +604,7 @@ t_drop_generation(Config) ->
|
||||||
after
|
after
|
||||||
emqx_cth_cluster:stop(Nodes)
|
emqx_cth_cluster:stop(Nodes)
|
||||||
end,
|
end,
|
||||||
fun(Trace) ->
|
fun(_Trace) ->
|
||||||
%% TODO: some idempotency errors still happen
|
%% TODO: some idempotency errors still happen
|
||||||
%% ?assertMatch([], ?of_kind(ds_storage_layer_failed_to_drop_generation, Trace)),
|
%% ?assertMatch([], ?of_kind(ds_storage_layer_failed_to_drop_generation, Trace)),
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in New Issue