From 984782d7798f11168ee8e0bae2e4054ed0498af8 Mon Sep 17 00:00:00 2001 From: mamoniot Date: Mon, 20 Mar 2023 17:32:43 -0400 Subject: [PATCH] made the correctness tests less aggressive --- utils/src/arc_pool.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/src/arc_pool.rs b/utils/src/arc_pool.rs index d9eb269e5..b4fd8c88f 100644 --- a/utils/src/arc_pool.rs +++ b/utils/src/arc_pool.rs @@ -495,7 +495,7 @@ mod tests { #[test] fn multi_thread() { - const N: usize = 123456; + const N: usize = 12345; static COUNT: AtomicU64 = AtomicU64::new(0); let mut joins = Vec::new(); @@ -556,7 +556,7 @@ mod tests { let s = Arc::new(PoolArcSwap::new(TestPools::alloc(Item::new(0, &COUNT)))); - for _ in 0..1234 { + for _ in 0..123 { let mut joins = Vec::new(); for _ in 0..8 { let swaps = s.clone(); @@ -578,7 +578,7 @@ mod tests { #[test] fn multi_thread_swap_load() { - const N: usize = 123456; + const N: usize = 12345; static COUNT: AtomicU64 = AtomicU64::new(0); let s: Arc<[_; 8]> = Arc::new(std::array::from_fn(|i| PoolArcSwap::new(TestPools::alloc(Item::new(i as u32, &COUNT)))));