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
|
||||
%% elements or reordering).
|
||||
ExpectedSeenPayloads = lists:flatten(lists:duplicate(4, Payloads)),
|
||||
?assertEqual(
|
||||
ExpectedSeenPayloads,
|
||||
?projection(n, ?of_kind(connector_demo_batch_inc_individual, Trace))
|
||||
Trace1 = lists:sublist(
|
||||
?projection(n, ?of_kind(connector_demo_batch_inc_individual, Trace)),
|
||||
length(ExpectedSeenPayloads)
|
||||
),
|
||||
?assertEqual(ExpectedSeenPayloads, Trace1),
|
||||
?assertMatch(
|
||||
[#{n := ExpectedCount}],
|
||||
?of_kind(connector_demo_inc_counter, Trace)
|
||||
|
|
Loading…
Reference in New Issue