Skip to content

Fix flaky test in WebViewRumEventConsumerTest#1724

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

Fix flaky test in WebViewRumEventConsumerTest#1724
xgouchet merged 1 commit into
developfrom
xgouchet/flaky/WebViewRumEventConsumerTest

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

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

@0xnm 0xnm left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown

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
@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.

4 participants