Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
fixing  issue with NetworkManagerTests not using the right property.
  • Loading branch information
NoelStephensUnity committed Nov 19, 2024
1 parent d351772 commit c52401b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions testproject/Assets/Tests/Runtime/NetworkManagerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ public enum UseSceneManagement
SceneManagementDisabled
}

private bool m_EnableSceneManagement;
private NetworkObject m_NetworkObject;
private bool m_NetworkObjectWasSpawned;
private bool m_NetworkBehaviourIsHostWasSet;
Expand Down Expand Up @@ -85,7 +84,7 @@ protected override IEnumerator OnTearDown()

protected override void OnServerAndClientsCreated()
{
m_ServerNetworkManager.NetworkConfig.EnableSceneManagement = m_EnableSceneManagement;
m_ServerNetworkManager.NetworkConfig.EnableSceneManagement = m_UseSceneManagement;
m_NetworkObjectTestComponent.ConfigureClientConnected(m_ServerNetworkManager, OnClientConnectedCallback);
}

Expand All @@ -108,7 +107,7 @@ public enum ShutdownChecks

protected override void OnNewClientCreated(NetworkManager networkManager)
{
networkManager.NetworkConfig.EnableSceneManagement = m_EnableSceneManagement;
networkManager.NetworkConfig.EnableSceneManagement = m_UseSceneManagement;
foreach (var prefab in m_ServerNetworkManager.NetworkConfig.Prefabs.Prefabs)
{
networkManager.NetworkConfig.Prefabs.Add(prefab);
Expand Down

0 comments on commit c52401b

Please sign in to comment.