test(resource): fix flaky test
Sometimes this test might retry more times, so we check the prefix of the trace only.
This commit is contained in:
parent
03b95073fc
commit
164440fe83
|
@ -1167,10 +1167,11 @@ t_retry_batch(_Config) ->
|
||||||
%% each time should be the original batch (no duplicate
|
%% each time should be the original batch (no duplicate
|
||||||
%% elements or reordering).
|
%% elements or reordering).
|
||||||
ExpectedSeenPayloads = lists:flatten(lists:duplicate(4, Payloads)),
|
ExpectedSeenPayloads = lists:flatten(lists:duplicate(4, Payloads)),
|
||||||
?assertEqual(
|
Trace1 = lists:sublist(
|
||||||
ExpectedSeenPayloads,
|
?projection(n, ?of_kind(connector_demo_batch_inc_individual, Trace)),
|
||||||
?projection(n, ?of_kind(connector_demo_batch_inc_individual, Trace))
|
length(ExpectedSeenPayloads)
|
||||||
),
|
),
|
||||||
|
?assertEqual(ExpectedSeenPayloads, Trace1),
|
||||||
?assertMatch(
|
?assertMatch(
|
||||||
[#{n := ExpectedCount}],
|
[#{n := ExpectedCount}],
|
||||||
?of_kind(connector_demo_inc_counter, Trace)
|
?of_kind(connector_demo_inc_counter, Trace)
|
||||||
|
|
Loading…
Reference in New Issue