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
Adding some debug information to NetworkShowHideTests.
Replacing m_ServerNetworkManager in OwnerModifiedTests with GetAuthorityNetworkManager() to become CMB service testing compatible.
@@ -42,7 +44,7 @@ public override void OnNetworkSpawn()
42
44
}
43
45
else
44
46
{
45
-
Debug.Assert(MyListSetOnSpawn.Count==1);
47
+
Debug.Assert(MyListSetOnSpawn.Count==1,$"[Session Authority][Client-{NetworkManager.LocalClientId}][{name}] Count = {MyListSetOnSpawn.Count} when expecting only 1!");
46
48
Debug.Assert(MyListSetOnSpawn[0]==45);
47
49
}
48
50
@@ -53,34 +55,23 @@ public override void OnNetworkSpawn()
@@ -532,6 +523,7 @@ public IEnumerator NetworkHideChangeOwnership()
532
523
AssertOnTimeout($"NetworkObject is still visible to Client-{m_ClientWithoutVisibility} or other clients think it is still visible to Client-{m_ClientWithoutVisibility}:\n{m_ErrorLog}");
AssertOnTimeout($"Timed out waiting for ShowHideObject.ClientTargetedNetworkObjects to have a count of 0 but was {ShowHideObject.ClientTargetedNetworkObjects.Count}!");
535
527
536
528
foreach(varclientinm_ClientNetworkManagers)
537
529
{
@@ -564,8 +556,31 @@ public IEnumerator NetworkHideChangeOwnership()
AssertOnTimeout($"Timed out waiting for ShowHideObject.ClientTargetedNetworkObjects to have a count of 1 but was {ShowHideObject.ClientTargetedNetworkObjects.Count}!");
errorLog.AppendLine($"[CheckIsClientOwner][Index: 0][{ShowHideObject.ClientTargetedNetworkObjects[0].name}] OwnerClientId is {ShowHideObject.ClientTargetedNetworkObjects[0].OwnerClientId} when it was expected to be {m_ClientIdToCheck}!");
0 commit comments