From 16c0dc8b1e97a66b9dcc8e470d95380748ae7de0 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 13 Feb 2022 15:54:19 +0100 Subject: [PATCH] Shorten miri tests These extra iterations shouldn't matter, and miri is pretty slow. --- src/buffer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buffer.rs b/src/buffer.rs index 6e61718d..03c956bf 100644 --- a/src/buffer.rs +++ b/src/buffer.rs @@ -213,13 +213,13 @@ mod miri { } for mut samples in buffer.iter_mut() { - for _ in 0..10 { + for _ in 0..2 { for sample in samples.iter_mut() { *sample += 0.001; } } } - assert_eq!(real_buffers[0][0], 0.011000001); + assert_eq!(real_buffers[0][0], 0.003); } }