diff --git a/crates/bevy_transform/src/systems.rs b/crates/bevy_transform/src/systems.rs index 0000af7602085..672e67b513523 100644 --- a/crates/bevy_transform/src/systems.rs +++ b/crates/bevy_transform/src/systems.rs @@ -340,6 +340,8 @@ mod test { #[should_panic] fn panic_when_hierarchy_cycle() { let mut world = World::default(); + // This test is run on a single thread in order to avoid breaking the global task pool by panicking + // This fixes the flaky tests reported in https://github.com/bevyengine/bevy/issues/4996 let mut update_stage = SystemStage::single_threaded(); update_stage.add_system(parent_update_system);