summaryrefslogtreecommitdiffstats
path: root/library/std/src/time/tests.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/time/tests.rs')
-rw-r--r--library/std/src/time/tests.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/std/src/time/tests.rs b/library/std/src/time/tests.rs
index d710a5744..6229556c8 100644
--- a/library/std/src/time/tests.rs
+++ b/library/std/src/time/tests.rs
@@ -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;