Skip to content

Commit abd2577

Browse files
committed
Fix DeferredMessagingTests
1 parent 9bc367d commit abd2577

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,7 @@ protected override void OnNewClientCreated(NetworkManager networkManager)
256256
{
257257
AddPrefabsToClient(networkManager);
258258
}
259-
260-
base.OnNewClientCreated(networkManager);
259+
// Don't call base as this will synchronize the prefabs
261260
}
262261

263262
private void SpawnClients(bool clearTestDeferredMessageManagerCallFlags = true)

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ protected override void OnNewClientCreated(NetworkManager networkManager)
8585
// Disable forcing the same prefabs to avoid failed connections
8686
networkManager.NetworkConfig.ForceSamePrefabs = false;
8787
networkManager.LogLevel = m_CurrentLogLevel;
88-
89-
// To simulate a failure, we exclude the m_InValidNetworkPrefab from the connecting client's side.
88+
// To simulate a failure, exclude the m_InValidNetworkPrefab from the connecting client's side.
9089
networkManager.NetworkConfig.Prefabs.Remove(m_InValidNetworkPrefab);
9190
}
9291

0 commit comments

Comments
 (0)