]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/time/tests.rs
Auto merge of #100782 - thomcc:fix-android-sigaddset, r=Mark-Simulacrum
[rust.git] / library / std / src / time / tests.rs
index d710a574465ce019ef9d0006453c987ed274be12..6229556c85fee926f0535f3d3867c9b99b808bf3 100644 (file)
@@ -31,7 +31,8 @@ fn instant_monotonic_concurrent() -> crate::thread::Result<()> {
         .map(|_| {
             crate::thread::spawn(|| {
                 let mut old = Instant::now();
-                for _ in 0..5_000_000 {
+                let count = if cfg!(miri) { 1_000 } else { 5_000_000 };
+                for _ in 0..count {
                     let new = Instant::now();
                     assert!(new >= old);
                     old = new;