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 <alice.i.cecile@gmail.com>
  • Loading branch information
hymm and alice-i-cecile committed Jun 13, 2022
1 parent 04186a0 commit 39a52f4
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 39a52f4

Please sign in to comment.