diff --git a/crates/bevy_time/src/time.rs b/crates/bevy_time/src/time.rs index d752bdd51de5b..89ef1c11a31fd 100644 --- a/crates/bevy_time/src/time.rs +++ b/crates/bevy_time/src/time.rs @@ -442,6 +442,9 @@ mod tests { } #[test] + // Don't run on a m1 as they have a 41ns precision + // https://github.com/rust-lang/rust/issues/91417 + #[cfg(not(all(target_arch = "aarch64", target_vendor = "apple")))] fn update_test() { let start_instant = Instant::now(); let mut time = Time::new(start_instant); @@ -574,6 +577,9 @@ mod tests { } #[test] + // Don't run on a m1 as they have a 41ns precision + // https://github.com/rust-lang/rust/issues/91417 + #[cfg(not(all(target_arch = "aarch64", target_vendor = "apple")))] fn relative_speed_test() { let start_instant = Instant::now(); let mut time = Time::new(start_instant); @@ -676,6 +682,9 @@ mod tests { } #[test] + // Don't run on a m1 as they have a 41ns precision + // https://github.com/rust-lang/rust/issues/91417 + #[cfg(not(all(target_arch = "aarch64", target_vendor = "apple")))] fn pause_test() { let start_instant = Instant::now(); let mut time = Time::new(start_instant);