Skip to content

Fix flaky test in TelemetryEventHandlerTest#1729

Merged
xgouchet merged 1 commit into
developfrom
xgouchet/flaky/telemetry_event_handler
Nov 16, 2023
Merged

Fix flaky test in TelemetryEventHandlerTest#1729
xgouchet merged 1 commit into
developfrom
xgouchet/flaky/telemetry_event_handler

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR fixes a flaky test in TelemetryEventHandlerTest

The test generates a list of events, and then filters it to ensure to keep only one event per fingerprint. If the number of filtered event is lower than the MAX_EVENTS_PER_SESSION_TEST value, the test eventually tries to verify that a warning log is printed a negative amount of times.

The fix ensures that the filtered list has enough entries to trigger the log at least once.

@xgouchet
xgouchet requested review from a team as code owners November 16, 2023 14:43
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #1729 (23588f1) into develop (8afdbd6) will decrease coverage by 0.06%.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1729      +/-   ##
===========================================
- Coverage    83.41%   83.35%   -0.06%     
===========================================
  Files          465      465              
  Lines        16147    16144       -3     
  Branches      2401     2400       -1     
===========================================
- Hits         13468    13456      -12     
- Misses        2025     2033       +8     
- Partials       654      655       +1     

see 15 files with indirect coverage changes

@xgouchet
xgouchet merged commit 9457e96 into develop Nov 16, 2023
@xgouchet
xgouchet deleted the xgouchet/flaky/telemetry_event_handler branch November 16, 2023 17:46
@xgouchet xgouchet added this to the 2.3.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants