We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e64764 commit 960000eCopy full SHA for 960000e
com.unity.netcode.gameobjects/Tests/Runtime/NetworkSpawnManagerTests.cs
@@ -61,10 +61,9 @@ public void TestClientCantAccessServerPlayer()
61
return;
62
}
63
// client can't access server player
64
- Assert.Throws<NotServerException>(() =>
65
- {
66
- m_ClientNetworkManagers[0].SpawnManager.GetPlayerNetworkObject(serverSideClientId);
67
- });
+ string expectedLog = $"[Netcode-Server Sender=0] {serverSideClientId} Only the server can find player objects from other clients.";
+ LogAssert.Expect(UnityEngine.LogType.Error, expectedLog);
+ m_ClientNetworkManagers[0].SpawnManager.GetPlayerNetworkObject(serverSideClientId);
68
69
70
[Test]
0 commit comments