We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a78960 commit 84b9aa8Copy full SHA for 84b9aa8
crates/bevy_ecs/src/lib.rs
@@ -637,8 +637,22 @@ mod tests {
637
#[test]
638
fn table_add_remove_many() {
639
let mut world = World::default();
640
- let mut entities = Vec::with_capacity(10_000);
641
- for _ in 0..1000 {
+ #[cfg(miri)]
+ let mut entities = Vec::with_capacity(10);
642
+ #[cfg(not(miri))]
643
+ let mut entities = Vec::with_capacity(1_000);
644
+
645
+ let to;
646
647
+ {
648
+ to = 10;
649
+ }
650
651
652
+ to = 1000;
653
654
655
+ for _ in 0..to {
656
entities.push(world.spawn().insert(B(0)).id());
657
}
658
0 commit comments