Skip to content

Commit

Permalink
Increase iteration count for asset tests (bevyengine#9737)
Browse files Browse the repository at this point in the history
This needs to be much higher to avoid failures in CI. I don't love the
"loop until" test methodology generally, but this is testing internal
state and making this event driven would change the nature of the test.
  • Loading branch information
cart authored Sep 10, 2023
1 parent 17edf4f commit 0c44de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_asset/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ mod tests {
panic!("Ran out of loops to return `Some` from `predicate`");
}

const LARGE_ITERATION_COUNT: usize = 50;
const LARGE_ITERATION_COUNT: usize = 10000;

fn get<A: Asset>(world: &World, id: AssetId<A>) -> Option<&A> {
world.resource::<Assets<A>>().get(id)
Expand Down

0 comments on commit 0c44de7

Please sign in to comment.