Skip to content

fix: [NGOv1.X backport] android time test failures due to edge case float precision errors#3352

Merged
michalChrobot merged 3 commits intodevelopfrom
fix/android-time-test-failures
Apr 2, 2025
Merged

fix: [NGOv1.X backport] android time test failures due to edge case float precision errors#3352
michalChrobot merged 3 commits intodevelopfrom
fix/android-time-test-failures

Conversation

@michalChrobot
Copy link
Copy Markdown
Member

@michalChrobot michalChrobot commented Mar 19, 2025

This PR is a backport of #3351

Some changes were not included because those were already present on develop branch. All Android tests passed before merging

…rs (#3351)

`NetworkTimeSystemTests.CorrectAmountTicksTest`
Using the double version of tick frequency to calculate number of ticks
passed.

`TimeInitializationTest.TestClientTimeInitializationOnConnect`
Dividing the double version of tick frequency to calculate number of
ticks passed and using the double version of `Math.Floor` before casting
that to an integer.

## Changelog

NA

## Testing and Documentation

- Includes integration test updates.
- No documentation changes or additions were necessary.

<!-- Uncomment and mark items off with a * if this PR deprecates any
API:
### Deprecated API
- [ ] An `[Obsolete]` attribute was added along with a `(RemovedAfter
yyyy-mm-dd)` entry.
- [ ] An [api updater] was added.
- [ ] Deprecation of the API is explained in the CHANGELOG.
- [ ] The users can understand why this API was removed and what they
should use instead.
-->
@michalChrobot michalChrobot requested a review from a team as a code owner March 19, 2025 08:54
@michalChrobot michalChrobot self-assigned this Mar 19, 2025
@michalChrobot michalChrobot merged commit c7996c6 into develop Apr 2, 2025
4 of 40 checks passed
@michalChrobot michalChrobot deleted the fix/android-time-test-failures branch April 2, 2025 10:54
@michalChrobot michalChrobot changed the title fix: [BACKPORT] android time test failures due to edge case float precision errors fix: [NGOv1.X backport] android time test failures due to edge case float precision errors Apr 2, 2025
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.

2 participants