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: Unity.Netcode.RuntimeTests Failing on Console - v1.1.0 (#1653)
* Squashed commit of the following:
commit 36c52d7
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 22:39:30 2022 -0600
style
arrg!!!!!! white space
commit 861ef54
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 19:51:09 2022 -0600
fix and update
fixed issue with WhenListContainsManyLargeValues_OverflowExceptionIsNotThrown count comparison value.
Updated removed FixedString32Test by removing yield return that was not needed.
commit 3e70580
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 19:41:57 2022 -0600
update
Reviewing the updated methods and making some minor adjustments.
commit ba3e09d
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 19:19:15 2022 -0600
style
removing a using statement for a namespace that was not being used.
commit 3088309
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 19:16:51 2022 -0600
fix
The AllNetworkVariableTypes was not properly creating the NetworkManager based on the value of useHost
commit 0f9d8ca
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 18:56:08 2022 -0600
update
removing more MultiInstanceHelpers.Run calls
commit 38ec0fe
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 18:48:47 2022 -0600
update
removing MultiInstanceHelpers.Run calls from NetworkTransform as they are not needed.
commit f8fd60c
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 18:32:53 2022 -0600
test update and style
removing some of the Run calls and beginning to convert over some of the problematic tests to just yield return the conditional check itself to avoid potential timing issues when checking the condition and yielding to the current test group's newly created coroutine.
commit 71a4d4e
Merge: 994d45927e8498
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 17:56:21 2022 -0600
Merge branch 'develop' into fix/console-tests-failing
commit 994d459
Merge: 35b47a574df5b2
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 17:29:17 2022 -0600
Merge branch 'develop' into fix/console-tests-failing
commit 35b47a5
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Wed Feb 2 17:29:07 2022 -0600
test refactor
This update collapses all of the time out code into the BaseMultiInstanceTest with an added method WaitForConditionOrTimeOut that leverages from an added TimeOutHelper class.
commit 73340d6
Merge: feb9e47096f614
Author: Noel Stephens <noel.stephens@unity3d.com>
Date: Wed Feb 2 02:59:21 2022 -0600
Merge branch 'develop' into fix/console-tests-failing
commit feb9e47
Merge: a66d4f3e07450f
Author: Noel Stephens <noel.stephens@unity3d.com>
Date: Tue Feb 1 16:14:06 2022 -0600
Merge branch 'develop' into fix/console-tests-failing
commit a66d4f3
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Tue Feb 1 16:13:53 2022 -0600
style
removing whitespace.
commit 02e4681
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Tue Feb 1 13:50:30 2022 -0600
style
making sure NetworkTransform was exactly as it was before, removing a LF/CR
commit 33e6601
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Tue Feb 1 13:49:13 2022 -0600
refactor
Came up with what I hope is a much better fix to get NetworkTransformTests passing on all consoles. Passes on a windows stand alone test runner build...will need to run this on the consoles to verify the fix.
commit 91d8f31
Merge: 72d3d49ef257a9
Author: Noel Stephens <noel.stephens@unity3d.com>
Date: Tue Feb 1 09:29:42 2022 -0600
Merge branch 'develop' into fix/console-tests-failing
commit 72d3d49
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Mon Jan 31 12:46:02 2022 -0600
refactor
removing the timeout code to reduce confusion on the changes to NetworkVariableTests.
commit 82d243f
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Mon Jan 31 11:38:44 2022 -0600
revert
re-applying readonly to the m_TestWithClientNetworkTransform and m_TestWithHost properties as that was changed during troubleshooting.
commit 3a90687
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Mon Jan 31 11:34:56 2022 -0600
refactor
moving the HasTimedOut check to the end of each while loop to assure that any possible edge case scenario where it finishes just as it would be timing out is not missed. An example would be the condition being checked is validated but it lands right on the timeout period. The test would have been a success, but timedOut would have been set too.
commit 71ae813
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Mon Jan 31 11:23:24 2022 -0600
refactor
using the bool as opposed to direct method call for the while loops.
commit 96b62b4
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Mon Jan 31 10:37:07 2022 -0600
update
Applied suggestion by Fatih to use deltaTime with normal Update selected and fixedDeltaTime for FixedUpdate selected.
commit 90b9ed9
Merge: d509fcac17f5b8
Author: Noel Stephens <noel.stephens@unity3d.com>
Date: Sat Jan 29 15:09:31 2022 -0600
Merge branch 'develop' into fix/console-tests-failing
commit d509fca
Merge: 824462758f194d
Author: Noel Stephens <noel.stephens@unity3d.com>
Date: Fri Jan 28 17:17:15 2022 -0600
Merge branch 'develop' into fix/console-tests-failing
commit 8244627
Merge: 43e9382402210e
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Fri Jan 28 13:18:33 2022 -0600
Merge branch 'fix/console-tests-failing' of https://github.com/Unity-Technologies/com.unity.netcode.gameobjects into fix/console-tests-failing
commit 43e9382
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Fri Jan 28 13:18:12 2022 -0600
update
Removing the auto-assignment of the NetworkTransformTests's constructor's properties that were left over from troubleshooting.
commit 402210e
Merge: 554bf0de4108e5
Author: Noel Stephens <noel.stephens@unity3d.com>
Date: Fri Jan 28 13:14:11 2022 -0600
Merge branch 'develop' into fix/console-tests-failing
commit 554bf0d
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Fri Jan 28 09:06:52 2022 -0600
style
removing a portion of the comment as it was a copy-paste of code used in other fixes.
commit 7766f27
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Fri Jan 28 02:37:06 2022 -0600
fix
delta read was failing.
commit 041e10d
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Fri Jan 28 01:39:59 2022 -0600
fix
This includes updates to the NetworkObjectOnSpawnTests in order to get it passing in stand alone test runner builds in order to get it to pass on consoles.
commit 26d2335
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Fri Jan 28 01:16:37 2022 -0600
style
white space missing.
commit 5b6146a
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Fri Jan 28 01:16:08 2022 -0600
fix
This includes the fixes for getting NetworkVarBufferCopyTest to run on a stand alone test runner build.
commit 0e4435b
Merge: 96282125032214
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Thu Jan 27 20:41:58 2022 -0600
Merge branch 'develop' into fix/console-tests-failing
commit 9628212
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Thu Jan 27 20:41:44 2022 -0600
style
Removed unused using statement.
commit c022e08
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Thu Jan 27 20:15:02 2022 -0600
fix - partial
This is a "quasi-fix" where I had to add the ability to run NetworkTransform in the FixedUpdate in order to get the NetworkTransform tests all passing when running in a stand alone test runner build.
commit ae1c750
Merge: 859d88c1704918
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Thu Jan 27 14:50:38 2022 -0600
Merge branch 'develop' into fix/console-tests-failing
commit 859d88c
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Thu Jan 27 14:45:56 2022 -0600
style
Just added some additional comments.
commit 4b40c04
Author: NoelStephensUnity <73188597+NoelStephensUnity@users.noreply.github.com>
Date: Thu Jan 27 14:31:20 2022 -0600
fix
This should fix the timing issues on consoles for the NetworkVariableTests.
* fix and merge updates
Fixes and minor modifications due to some differences between develop and v1.1.0
* update
weird merge issue fix
* test fix
fixing a few more tests that failed on some of the console platforms.
* test fix
Still running into timing issues during transport tests. Bumped the wait up to 2s and had to adjust FilledSendQueueMultipleSends to wait for the packet to be received before proceeding to send the next (this could probably be handled better but just putting a place holder fix in place for transport issues so I can confirm this the NGO runtime tests are all passing and for desktop server to see what I had to do to get it passing on some of the platforms under v1.1.0).
Also had to update the rest of the NetworkVariable tests to use the newer WaitForConditionOrTimeOut method.
* refactor
Putting System.Linq reference back as even though it shows it is not used...it is.
* temp backport of #1638
Realized the fixes for this were not backported to v1.0.0.
This is a temporary back port for my branch to get past the SendMaximumPayloadSize failures
* test backport temp
This fixes the issue with the standards checking of data.ToArray().
* test full backport of TransportTests
Finally looked at the very top of the TransportTests and realized they should be disabled for consoles.
* fix
fixes a mistake I made in the IndexOf test
* style
indent
* refactor
Added the ConditionalPredicateBase implementation of the IConditionalPredicate and implemented an overloaded version of WaitForConditionOrTimeOut.
Changed the original WaitForConditionOrTimeOut to just return true as all use cases of these UnityTest attribute decorated methods had access to the values and were relatively simple conditions.
I used the NetworkVariableTests as an example of how to use the a ConditionalPredicateBase derived class to simplify the scenario where you might be re-using the same code or conditional checks in many integration tests.
* update and style
Condensed the overloaded version of WaitForConditionOrTimeOut that accepts an IConditionalPredicate implementation.
Updates and added comments.
* update
Migrating a fix for and issue that was seen when testing both test project and runtime tests together. The update takes into consideration the rounding error that can occur when calculating tick from time (which was an earlier fix for the tick system).
* fix
Noticed on short was not switched to ushort.
0 commit comments