diff --git a/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs b/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs index 8fe8ec833..ac01b56b5 100644 --- a/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs +++ b/Assets/Mirror/Tests/Runtime/NetworkServerRuntimeTest.cs @@ -64,10 +64,8 @@ public IEnumerator Shutdown_DestroysAllSpawnedPrefabs() NetworkIdentity identity2 = spawnPrefab(prefab); - // test + // shutdown, wait 1 frame for unity to destroy objects NetworkServer.Shutdown(); - - // wait 1 frame for unity to destroy objects yield return null; // check that objects were destroyed