ignore nanosec precision tests on apple m1 (#6377)
# Objective - Some tests are very flaky on a m1 - m1 currently have a 41 ns precision ## Solution - Do not run tests that compare a `Duration` or a `f64` on a m1 (and m2)
This commit is contained in:
parent
7671ddea72
commit
a083882cb2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user