mirror of
https://github.com/bevyengine/bevy
synced 2024-11-23 05:03:47 +00:00
Remove unused test resource in a bevy_ecs schedule unit test (#7551)
Small commit to remove an unused resource scoped within a single bevy_ecs unit test. Also rearranged the initialization to follow initialization conventions of surrounding tests. World/Schedule initialization followed by resource initialization. This change was tested locally with `cargo test`, and `cargo fmt` was run. Risk should be tiny as change is scoped to a single unit test and very tiny, and I can't see any way that this resource is being used in the test. Thank you so much!
This commit is contained in:
parent
f0fc9e9700
commit
978f7cd8bf
1 changed files with 2 additions and 4 deletions
|
@ -175,13 +175,11 @@ mod tests {
|
|||
|
||||
#[test]
|
||||
fn add_systems_correct_order() {
|
||||
#[derive(Resource)]
|
||||
struct X(Vec<TestSet>);
|
||||
|
||||
let mut world = World::new();
|
||||
let mut schedule = Schedule::new();
|
||||
|
||||
world.init_resource::<SystemOrder>();
|
||||
|
||||
let mut schedule = Schedule::new();
|
||||
schedule.add_systems(
|
||||
(
|
||||
make_function_system(0),
|
||||
|
|
Loading…
Reference in a new issue