Skip to content

Commit 506003f

Browse files
committed
Fix deferred messaging tests
1 parent 27b6282 commit 506003f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

com.unity.netcode.gameobjects/Tests/Runtime/DeferredMessagingTests.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,7 @@ protected override void OnNewClientCreated(NetworkManager networkManager)
259259
{
260260
AddPrefabsToClient(networkManager);
261261
}
262-
263-
base.OnNewClientCreated(networkManager);
262+
// Don't call base to avoid synchronizing the prefabs
264263
}
265264

266265
private void SpawnClients(bool clearTestDeferredMessageManagerCallFlags = true)

com.unity.netcode.gameobjects/Tests/Runtime/NetworkObject/NetworkObjectSynchronizationTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ protected override void OnNewClientCreated(NetworkManager networkManager)
8686

8787
networkManager.NetworkConfig.PlayerPrefab = m_PlayerPrefab;
8888
networkManager.NetworkConfig.EnsureNetworkVariableLengthSafety = m_VariableLengthSafety == VariableLengthSafety.EnabledNetVarSafety;
89-
9089
// Disable forcing the same prefabs to avoid failed connections
9190
networkManager.NetworkConfig.ForceSamePrefabs = false;
9291
networkManager.LogLevel = m_CurrentLogLevel;

0 commit comments

Comments
 (0)