Skip to content

Conversation

NoelStephensUnity
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity commented Mar 13, 2023

Adding additional define check for console/stand alone test runner based integration tests.
Reducing the over-all time to execute tests.
Fixing an issue with NetworkAnimatorTests.ShutdownWhileSpawnedAndStartBackUpTest not properly reconfiguring all clients as well as making NetworkConfig's cached hash value not persist after shutting down. If the NetworkConfig cached hash is not cleared when NetworkManager shuts down and a client attempts to connect to a new session where the user application knows that the server being connected to has different/alternate prefabs (i.e. the prefab list is modified) it would cause the client to not be able to connect.
Fixing an issue where NetworkTransform teleporting could have potentially been overwritten by a change in state prior to the next network tick update. Adjusted NetworkTransformStateTests to account for this fix.

Testing and Documentation

  • Integration tests have been updated.
  • No documentation changes or additions were necessary.

Adding UNITY_INCLUDE_TESTS check for integration testing.
Adding UNITY_INCLUDE_TESTS define checks for integration tests
@NoelStephensUnity NoelStephensUnity requested a review from a team as a code owner March 13, 2023 18:22
Some modifications to reduce the over-all NetworkTransform test times.
Reducing NetworkAnimator tests time.
Fixing an issue with the network config hash internally stored value not clearing when the server-host or the client shutsdown in the event that prefabs change depending upon the network session being connected to.
Making sure NetworkAnimatorTests.ShutdownWhileSpawnedAndStartBackUpTest fails if the client cannot reconnect after shutting down.
Fixing some tests and NetworkTranaform teleporting issue where some deltas could be lost in-between ticks.
Improving the nested network transform test accuracy and assuring that we are actually comparing against the authority's pushed position and not comparing values in-between ticks.
removing commented out code
Removing commented out code and unused namespaces.
Making sure all clients are disconnected before shutting down server in NetworkAnimator (trying to see if I can get it more stable on Mac 2020.3)
@NoelStephensUnity NoelStephensUnity changed the title fix: integration test specific defines for consoles fix: integration tests and NetworkTransform teleport issue Mar 15, 2023
making sure quat synch is enabled.
Trying to resolve issue where Mac on 2020.3 seems to not have enough time when interpolating.
This update provides a new TimeOutHelper derived class TimeoutFrameCountHelper that requires the expected number of frames to pass and the time out period to be reached before it considers the condition check timed out.
renaming the constructor of TimeoutFrameCountHelper
Making 2020.3 Mac OS X runs use a higher threshold as it fails on full precision when interpolation is enabled.
Making the test component for TransformInterpolationObject derive from NetworkTransform to assure that we are checking values after they have been updated.
removing white space
migrating some initialization into TransformInterpolationObject for TransformInterpolationTests
reducing precision failures back down to 5 and the iterations to test back up to 10
Updated TransformInterpolationTest to be based on frames and not time.
Updated NestedNetworkTransformTests to include rotation in the Mac OS X adjustment when running on 2020.3.
Making adjustments for systems that run below (or well below) the expected frame rate.
Adding some additional checks as well as providing additional information about time and frame count in NestedNetworkTransformTests.
Forgot to replace k_AdditionalTimeTolerance with additionalTimeTolerance
@NoelStephensUnity NoelStephensUnity merged commit e0e0098 into develop Mar 17, 2023
@NoelStephensUnity NoelStephensUnity deleted the fix/integrationtest-specific-defines-for-consoles branch March 17, 2023 00:46
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