You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: network time system tests should use double fixed delta time (#3373)
Adding the support to use a double delta time for
NetworkTimeSystemTests.
## Changelog
NA
## Testing and Documentation
- Includes update to the `NetworkTimeSystemTests.CorrectAmountTicksTest`
integration test.
- 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.
-->
Assert.AreEqual(previous_localTickCalculated,NetworkManager.Singleton.LocalTime.Tick,$"Calculated local tick {previous_localTickCalculated} does not match local tick {NetworkManager.Singleton.LocalTime.Tick}!");
93
-
Assert.AreEqual(previous_serverTickCalculated,NetworkManager.Singleton.ServerTime.Tick,$"Calculated server tick {previous_serverTickCalculated} does not match server tick {NetworkManager.Singleton.ServerTime.Tick}!");
91
+
Assert.AreEqual(previous_localTickCalculated,NetworkManager.Singleton.LocalTime.Tick,$"Calculated local tick {previous_localTickCalculated} does not match local tick {NetworkManager.Singleton.LocalTime.Tick}!]n Local Tick-Calc: {localTickCalculated} LocalTime: {tickSystem.LocalTime.Time} | Server Tick-Calc: {serverTickCalculated} ServerTime: {tickSystem.ServerTime.Time} | TickDelta: {delta}");
92
+
Assert.AreEqual(previous_serverTickCalculated,NetworkManager.Singleton.ServerTime.Tick,$"Calculated server tick {previous_serverTickCalculated} does not match server tick {NetworkManager.Singleton.ServerTime.Tick}!\n Local Tick-Calc: {localTickCalculated} LocalTime: {tickSystem.LocalTime.Time} | Server Tick-Calc: {serverTickCalculated} ServerTime: {tickSystem.ServerTime.Time} | TickDelta: {delta}");
94
93
Assert.AreEqual((float)NetworkManager.Singleton.LocalTime.Time,(float)NetworkManager.Singleton.ServerTime.Time,$"Local time {(float)NetworkManager.Singleton.LocalTime.Time} is not approximately server time {(float)NetworkManager.Singleton.ServerTime.Time}!",FloatComparer.s_ComparerWithDefaultTolerance);
0 commit comments