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);