Skip to content

Conversation

@michalChrobot
Copy link
Collaborator

@michalChrobot michalChrobot commented Mar 3, 2025

This PR focuses on addressing disabled WhenAnticipating_ValueChangesImmediately on Android devices which is located in com.unity.netcode.gameobjects/Tests/Runtime/NetworkTransformAnticipationTests.cs and tracked via MTT-11341

The error that is happening says
name: Unity.Netcode.RuntimeTests.NetworkTransformAnticipationTests.WhenAnticipating_ValueChangesImmediately result: FAILED message: Expected: (-0.28337, 0.21980, 0.06689, 0.93108) But was: (-0.28337, 0.21980, 0.06689, 0.93108) stackTrace: at Unity.Netcode.RuntimeTests.NetworkTransformAnticipationTests.WhenAnticipating_ValueChangesImmediately () [0x00000] in <00000000000000000000000000000000>:0 duration: 0.023017 seconds

Which seems to be an FP comparison problem (since the values seem to be correct). The approach is to use quaternion comparer with default error value of 0.000001 to mitigate this issue (DOCS)

@michalChrobot michalChrobot self-assigned this Mar 3, 2025
@michalChrobot michalChrobot changed the title ci: [NGOv2.X] Fixing disabled tests ci: [NGOv2.X] Fixing WhenAnticipating_ValueChangesImmediately test Mar 12, 2025
@michalChrobot michalChrobot marked this pull request as ready for review March 12, 2025 14:08
Copy link
Collaborator

@EmandM EmandM left a comment

Choose a reason for hiding this comment

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

🎉

Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

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

looks good to me. 👍

@NoelStephensUnity NoelStephensUnity merged commit e5362a4 into develop-2.0.0 Mar 13, 2025
40 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fixing-test-issues-develop-2.0.0 branch March 13, 2025 15:59
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