Commit e5362a4
authored
ci: [NGOv2.X] Fixing WhenAnticipating_ValueChangesImmediately test (#3331)
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](https://docs.unity3d.com/Packages/com.unity.test-framework@1.1/manual/reference-comparer-quaternion.html))1 parent 429b256 commit e5362a4
File tree
1 file changed
+4
-5
lines changed- com.unity.netcode.gameobjects/Tests/Runtime
1 file changed
+4
-5
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | | - | |
134 | | - | |
| 133 | + | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| |||
0 commit comments