Fix flaky BroadcastReceiverSystemInfoProvider test#1185
Merged
0xnm merged 1 commit intoDec 12, 2022
Merged
Conversation
0xnm
force-pushed
the
nogorodnikov/fix-flaky-BroadcastReceiverSystemInfoProvider-test
branch
from
December 9, 2022 11:27
2627c92 to
981d8d6
Compare
Codecov Report
@@ Coverage Diff @@
## develop #1185 +/- ##
===========================================
+ Coverage 82.27% 82.31% +0.04%
===========================================
Files 353 353
Lines 11793 11794 +1
Branches 2006 2006
===========================================
+ Hits 9702 9708 +6
+ Misses 1477 1476 -1
+ Partials 614 610 -4
|
mariusc83
approved these changes
Dec 9, 2022
xgouchet
approved these changes
Dec 12, 2022
0xnm
force-pushed
the
nogorodnikov/fix-flaky-BroadcastReceiverSystemInfoProvider-test
branch
from
December 12, 2022 15:29
981d8d6 to
308e3bc
Compare
0xnm
force-pushed
the
nogorodnikov/fix-flaky-BroadcastReceiverSystemInfoProvider-test
branch
from
December 12, 2022 15:44
308e3bc to
18942b2
Compare
0xnm
deleted the
nogorodnikov/fix-flaky-BroadcastReceiverSystemInfoProvider-test
branch
December 12, 2022 16:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This change fixes a flaky failure:
It happens because of the
FloattoIntconversion in the following operations:Since this conversion simply truncates the floating part we may end up loosing too much precision for the final comparison. This change instead of the truncation of the decimal part does a proper rounding.
Review checklist (to be filled by reviewers)