Skip to content

Fix flaky test in RumEventDeserializer#1727

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

Fix flaky test in RumEventDeserializer#1727
xgouchet merged 1 commit into
developfrom
xgouchet/flaky/RumEventDeserializer

Conversation

@xgouchet

Copy link
Copy Markdown
Contributor

What does this PR do?

Fix a flaky test in the RumEventDeserializer.

The test generates random usr.* attributes in a RUM event, then serialize and deserialize it and compare with the original one. An issue can arise if one of the random attributes uses a known key name (i.e. id, name, email), as on serialization it would conflict and wouldn't be recoverred via deserialization.

Additional Notes

I also "fixed" this in other ForgeryFactory implementations that could one day cause flakyness in the tests

@xgouchet
xgouchet requested review from a team as code owners November 16, 2023 13:26
@xgouchet
xgouchet force-pushed the xgouchet/flaky/RumEventDeserializer branch from 5fe046a to 1874646 Compare November 16, 2023 14:46
@codecov-commenter

codecov-commenter commented Nov 16, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1727 (1874646) into develop (436fad3) will increase coverage by 0.05%.
Report is 4 commits behind head on develop.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1727      +/-   ##
===========================================
+ Coverage    83.31%   83.36%   +0.05%     
===========================================
  Files          465      465              
  Lines        16125    16122       -3     
  Branches      2395     2394       -1     
===========================================
+ Hits         13434    13439       +5     
- Misses        2038     2039       +1     
+ Partials       653      644       -9     

see 23 files with indirect coverage changes

@xgouchet
xgouchet merged commit 3d199c6 into develop Nov 16, 2023
@xgouchet
xgouchet deleted the xgouchet/flaky/RumEventDeserializer branch November 16, 2023 16:00
@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