Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky test in WebViewRumEventConsumerTest #1724

Merged
merged 1 commit into from Nov 16, 2023

Conversation

xgouchet
Copy link
Collaborator

What does this PR do?

Fix a test that was randomly failing locally and in CI

Motivation

Test and CI reliability

Additional Notes

The test relied on several threads sending events to the WebViewRumEventConsumerTest. But the assertions expected the events to be processed in the original order, which, on many occasion (10% to 25% of test runs) wasn't true, meaning the assertion would fail.

@xgouchet xgouchet requested review from a team as code owners November 15, 2023 15:22
Copy link
Contributor

@0xnm 0xnm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for taking care of this!

@codecov-commenter
Copy link

Codecov Report

Merging #1724 (9cb38b8) into develop (8196669) will decrease coverage by 0.05%.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1724      +/-   ##
===========================================
- Coverage    83.40%   83.36%   -0.05%     
===========================================
  Files          465      465              
  Lines        16074    16071       -3     
  Branches      2383     2382       -1     
===========================================
- Hits         13406    13396      -10     
- Misses        2025     2032       +7     
  Partials       643      643              

see 20 files with indirect coverage changes

@xgouchet xgouchet merged commit 13a0f92 into develop Nov 16, 2023
23 checks passed
@xgouchet xgouchet deleted the xgouchet/flaky/WebViewRumEventConsumerTest branch November 16, 2023 08:59
@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.

None yet

4 participants