From 3013029e9c1ebd2dfe59d2e825535aa6e57cce3e Mon Sep 17 00:00:00 2001 From: james7132 Date: Thu, 7 Mar 2024 22:57:14 -0800 Subject: [PATCH] Fix more tests --- crates/bevy_ecs/src/reflect/entity_commands.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/crates/bevy_ecs/src/reflect/entity_commands.rs b/crates/bevy_ecs/src/reflect/entity_commands.rs index c6e16b4688dbc..9147405b570a0 100644 --- a/crates/bevy_ecs/src/reflect/entity_commands.rs +++ b/crates/bevy_ecs/src/reflect/entity_commands.rs @@ -344,7 +344,6 @@ mod tests { registry.register::(); registry.register_type_data::(); } - world.insert_resource(type_registry); let mut system_state: SystemState = SystemState::new(&mut world); let mut commands = system_state.get_mut(&mut world); @@ -406,12 +405,6 @@ mod tests { let mut world = World::new(); world.init_resource::(); - { - let mut registry = world.resource::().write(); - registry.register::(); - registry.register_type_data::(); - } - world.insert_resource(type_registry); let mut system_state: SystemState = SystemState::new(&mut world); let mut commands = system_state.get_mut(&mut world);