@@ -555,6 +555,7 @@ final class StreamLodBatchLODAwareStreamingTests: BaseRenderSetup {
555555 }
556556
557557 // MARK: - Gate-external buffer precomputation tests
558+
558559 // Validates the pattern used in loadMeshAsync: Metal buffer copies are built
559560 // BEFORE the world mutation gate, then only pointer assignments happen inside.
560561
@@ -585,7 +586,7 @@ final class StreamLodBatchLODAwareStreamingTests: BaseRenderSetup {
585586 " Entity should have non-empty mesh array after pre-gate assignment " )
586587 }
587588
588- func testPrecomputedMeshesAreIndependentFromSource( ) throws {
589+ func testPrecomputedMeshesAreIndependentFromSource( ) {
589590 // Verifies that pre-building outside the gate doesn't create aliasing —
590591 // mutations to the source should not affect the prebuilt copy.
591592 let sourceMeshes = BasicPrimitives . createSphere ( )
@@ -741,7 +742,7 @@ final class StreamLodBatchCoalescingTests: XCTestCase {
741742 for newLOD in 1 ... 3 {
742743 SystemEventBus . shared. queueLODChange (
743744 EntityLODChangedEvent ( entityId: 42 , previousLODIndex: newLOD - 1 ,
744- newLODIndex: newLOD, meshAssetID: " mesh_LOD \( newLOD) " )
745+ newLODIndex: newLOD, meshAssetID: " mesh_LOD \( newLOD) " )
745746 )
746747 }
747748 SystemEventBus . shared. flushEvents ( )
@@ -760,8 +761,8 @@ final class StreamLodBatchCoalescingTests: XCTestCase {
760761 XCTAssertNoThrow (
761762 SystemEventBus . shared. queueLODChange (
762763 EntityLODChangedEvent ( entityId: invalidEntityId,
763- previousLODIndex: 0 , newLODIndex: 1 ,
764- meshAssetID: " ghost_LOD1 " )
764+ previousLODIndex: 0 , newLODIndex: 1 ,
765+ meshAssetID: " ghost_LOD1 " )
765766 )
766767 )
767768 XCTAssertNoThrow ( SystemEventBus . shared. flushEvents ( ) )
@@ -793,7 +794,7 @@ final class StreamLodBatchCoalescingTests: XCTestCase {
793794 for id in EntityID ( 1 ) ... EntityID ( 5 ) {
794795 SystemEventBus . shared. queueLODChange (
795796 EntityLODChangedEvent ( entityId: id, previousLODIndex: 0 ,
796- newLODIndex: 1 , meshAssetID: " mesh \( id) _LOD1 " )
797+ newLODIndex: 1 , meshAssetID: " mesh \( id) _LOD1 " )
797798 )
798799 }
799800 SystemEventBus . shared. flushEvents ( )
0 commit comments