File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
com.unity.netcode.gameobjects/Tests/Runtime/DistributedAuthority Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ protected override void OnServerAndClientsCreated()
8787 Client . LogLevel = LogLevel . Developer ;
8888
8989 // Validate we are in distributed authority mode with client side spawning and using CMB Service
90- Assert . True ( Client . DistributedAuthorityMode , "Distributed authority is not set!" ) ;
90+ Assert . True ( Client . NetworkConfig . NetworkTopology == NetworkTopologyTypes . DistributedAuthority , "Distributed authority topology is not set!" ) ;
9191 Assert . True ( Client . AutoSpawnPlayerPrefabClientSide , "Client side spawning is not set!" ) ;
9292 Assert . True ( Client . CMBServiceConnection , "CMBServiceConnection is not set!" ) ;
9393
@@ -101,6 +101,9 @@ protected override void OnServerAndClientsCreated()
101101
102102 protected override IEnumerator OnStartedServerAndClients ( )
103103 {
104+ // Validate the NetworkManager are in distributed authority mode
105+ Assert . True ( Client . DistributedAuthorityMode , "Distributed authority is not set!" ) ;
106+
104107 // Register hooks after starting clients and server (in this case just the one client)
105108 // We do this at this point in time because the MessageManager exists (happens within the same call stack when starting NetworkManagers)
106109 m_ClientCodecHook = new CodecTestHooks ( ) ;
You can’t perform that action at this time.
0 commit comments