Skip to content

Commit 8009dd7

Browse files
Remove unnecessary calls to world.flush() (#21371)
# Objective Fixes #20177 ## Solution Remove unnecessary calls to `world.flush()` in observer tests ## Testing Ran `cargo test --package bevy_ecs --lib observer` and all tests passed <img width="1569" height="718" alt="image" src="https://github.com/user-attachments/assets/7fdb1959-3d4a-49f6-832a-15650e8ee94a" />
1 parent 6adae04 commit 8009dd7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

crates/bevy_ecs/src/observer/entity_cloning.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ mod tests {
9595
.spawn_empty()
9696
.observe(|_: On<E>, mut res: ResMut<Num>| res.0 += 1)
9797
.id();
98-
world.flush();
9998

10099
world.trigger(E(e));
101100

0 commit comments

Comments
 (0)