From b1162f0c295e89a44e5c52af765bcccf3275bfe1 Mon Sep 17 00:00:00 2001 From: Carter Anderson Date: Mon, 20 Jul 2020 01:51:06 -0700 Subject: [PATCH] ecs: fix resource scheduler test --- crates/bevy_ecs/src/schedule/parallel_executor.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_ecs/src/schedule/parallel_executor.rs b/crates/bevy_ecs/src/schedule/parallel_executor.rs index e46618dc58..afb9238b2d 100644 --- a/crates/bevy_ecs/src/schedule/parallel_executor.rs +++ b/crates/bevy_ecs/src/schedule/parallel_executor.rs @@ -476,7 +476,7 @@ mod tests { ); assert_eq!( executor.stages[2].system_dependents, - vec![vec![2], vec![2], vec![3], vec![]] + vec![vec![2, 3], vec![], vec![3], vec![]] ); let stage_0_len = executor.stages[0].system_dependencies.len(); @@ -513,6 +513,7 @@ mod tests { let mut read_isize_write_f64_res_deps = FixedBitSet::with_capacity(stage_2_len); read_isize_write_f64_res_deps.insert(0); let mut write_f64_res_deps = FixedBitSet::with_capacity(stage_2_len); + write_f64_res_deps.insert(0); write_f64_res_deps.insert(2); assert_eq!( executor.stages[2].system_dependencies,