Skip to content

Commit

Permalink
add comment for fix
Browse files Browse the repository at this point in the history
Co-authored-by: Alice Cecile <[email protected]>
  • Loading branch information
hymm and alice-i-cecile committed Jun 15, 2022
1 parent 63a9ad6 commit 635220f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/bevy_transform/src/systems.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 635220f

Please sign in to comment.