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
Updating the `NetworkTimeSystemTests.CorrectAmountTicksTest` to use the `NetworkTime.FixedDeltaTimeAsDouble` as opposed to the `NetworkTime.FixedDeltaTime`. Adding additional debug information in the event it fails in the future we will have more information.
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