File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
com.unity.netcode.gameobjects/TestHelpers/Runtime Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1156,6 +1156,9 @@ protected void ShutdownAndCleanUp()
11561156 // reset the m_ServerWaitForTick for the next test to initialize
11571157 s_DefaultWaitForTick = new WaitForSecondsRealtime ( 1.0f / k_DefaultTickRate ) ;
11581158 VerboseDebug ( $ "Exiting { nameof ( ShutdownAndCleanUp ) } ") ;
1159+
1160+ // Assure any remaining NetworkManagers are destroyed
1161+ DestroyNetworkManagers ( ) ;
11591162 }
11601163
11611164 protected IEnumerator CoroutineShutdownAndCleanUp ( )
@@ -1195,6 +1198,9 @@ protected IEnumerator CoroutineShutdownAndCleanUp()
11951198 // reset the m_ServerWaitForTick for the next test to initialize
11961199 s_DefaultWaitForTick = new WaitForSecondsRealtime ( 1.0f / k_DefaultTickRate ) ;
11971200 VerboseDebug ( $ "Exiting { nameof ( ShutdownAndCleanUp ) } ") ;
1201+
1202+ // Assure any remaining NetworkManagers are destroyed
1203+ DestroyNetworkManagers ( ) ;
11981204 }
11991205
12001206 /// <summary>
@@ -1244,8 +1250,7 @@ public IEnumerator TearDown()
12441250 VerboseDebug ( $ "Exiting { nameof ( TearDown ) } ") ;
12451251 LogWaitForMessages ( ) ;
12461252 NetcodeLogAssert . Dispose ( ) ;
1247- // Assure any remaining NetworkManagers are destroyed
1248- DestroyNetworkManagers ( ) ;
1253+
12491254 }
12501255
12511256 /// <summary>
You can’t perform that action at this time.
0 commit comments